private static IWeightMutationStrategy <double> CreateCardinalUniformResetStrategy(
            int selectCount, double weightScale)
        {
            var selectStrategy = new CardinalSubsetSelectionStrategy(selectCount);

            return(ResetWeightMutationStrategy <double> .CreateUniformResetStrategy(selectStrategy, weightScale));
        }
Exemplo n.º 2
0
        private static IWeightMutationStrategy <double> CreateCardinalUniformResetStrategy(
            int selectCount, double weightScale, IRandomSourceBuilder rngBuilder)
        {
            var selectStrategy = new CardinalSubsetSelectionStrategy(selectCount, rngBuilder.Create());

            return(ResetWeightMutationStrategy <double> .CreateUniformResetStrategy(selectStrategy, weightScale, rngBuilder.Create()));
        }