public abstract class CrossoverDouble extends Object implements Crossover<DoubleGenotype>
DoubleGenotype.| Constructor and Description |
|---|
CrossoverDouble(NormalizeDouble normalize,
Rand random)
Constructs a new crossover for the
DoubleGenotype. |
| Modifier and Type | Method and Description |
|---|---|
Pair<DoubleGenotype> |
crossover(DoubleGenotype p1,
DoubleGenotype p2)
Performs a crossover for two
Genotype parents. |
@Inject public CrossoverDouble(NormalizeDouble normalize, Rand random)
DoubleGenotype.normalize - a normalize operatorrandom - the random number generatorpublic Pair<DoubleGenotype> crossover(DoubleGenotype p1, DoubleGenotype p2)
CrossoverGenotype parents. The resulting pair
of Genotype offspring is returned.crossover in interface Crossover<DoubleGenotype>p1 - The first parent genotype for the crossoverp2 - The second parents genotype for the crossover