Evolution/Evolution/Core/Recombinator.cs
/// <summary>
/// Returns a recombinator made from a crossover
/// </summary>
/// <typeparam name="G2">The type of the 2.</typeparam>
/// <typeparam name="R"></typeparam>
/// <param name="crossover">The crossover.</param>
/// <param name="numberOfRecombinations">The number of recombinations.</param>
/// <param name="recombinationType">Type of the recombinatio.</param>
/// <returns></returns>
Returns a recombinator made from a crossover
Returns a recombinator made from a crossover
public static Recombinator<G2, F> FromCrossover<G2, R>(CrossoverBase<G2, R, F> crossover,
            double numberOfRecombinations, Recombinator<G2, F>.RecombinatioNumberType recombinationType)
            where R : IGene, new()
            where G2 : IListGenotype<G2, R>
        {
            return new Recombinator<G2, F>(crossover, crossover.NumberOfParentsNeeded, numberOfRecombinations,
                recombinationType);
        }
public static Recombinator < G2 , F > FromCrossover < G2 , R > ( CrossoverBase < G2 , R , F > crossover , double numberOfRecombinations , Recombinator < G2 , F > . RecombinatioNumberType recombinationType ) where R : IGene , new ( ) where G2 : IListGenotype < G2 , R > { return new Recombinator < G2 , F > ( crossover , crossover . NumberOfParentsNeeded , numberOfRecombinations , recombinationType ) ; }
Returns a recombinator made from a crossover
Returns a recombinator made from a crossover
None
crossover
CrossoverBase<G2, R, F>
None
numberOfRecombinations
double
The number of recombinations.
The number of recombinations .
recombinationType
Recombinator<G2, F>.RecombinatioNumberType
Type of the recombinatio.
Type of the recombinatio .
typeparam
The type of the 2.
The type of the 2 .
typeparam
None