Evolution/Evolution/Breeders/BreederGenerators.cs
/// <summary>
/// Returns a breeder which creates a population of genotypes with genes with the <see cref="FloatGene"/> with values between start and end sorted
/// in random order
/// </summary>
/// <param name="start">The start.</param>
/// <param name="end">The end.</param>
/// <param name="populationSize">Size of the population.</param>
/// <returns></returns>
Returns a breeder which creates a population of genotypes with genes with the  with values between start and end sorted
in random order
Returns a breeder which creates a population of genotypes with genes with the with values between start and end sorted in random order
public static GenotypeGeneratorBreeder<ListGenotype<FloatGene>> RangeBreeder(int start, int end,
            int populationSize)
        {
            return new GenotypeGeneratorBreeder<
                ListGenotype<FloatGene>>(
                index => new ListGenotype<FloatGene>(
                    Enumerable.Range(start, end).ToList().RandomSort().Select(i => new FloatGene(i))),
                populationSize);
        }
public static GenotypeGeneratorBreeder < ListGenotype < FloatGene > > RangeBreeder ( int start , int end , int populationSize ) { return new GenotypeGeneratorBreeder < ListGenotype < FloatGene > > ( index => new ListGenotype < FloatGene > ( Enumerable . Range ( start , end ) . ToList ( ) . RandomSort ( ) . Select ( i => new FloatGene ( i ) ) ) , populationSize ) ; }
Returns a breeder which creates a population of genotypes with genes with the  with values between start and end sorted
in random order
Returns a breeder which creates a population of genotypes with genes with the with values between start and end sorted in random order
None
start
int
None
end
int
None
populationSize
int
Size of the population.
Size of the population .