List of usage examples for org.apache.commons.math3.genetics CrossoverPolicy interface-usage
From source file org.apache.kylin.cube.cuboid.algorithm.generic.BitsOnePointCrossover.java
/**
* Modified from the OnePointCrossover.java in https://github.com/apache/commons-math
* <p>
* One point crossover policy. A random crossover point is selected and the
* first part from each parent is copied to the corresponding child, and the
* second parts are copied crosswise.
From source file eu.tsp.sal.NPointCrossover.java
/**
* N-point crossover policy. For each iteration a random crossover point is
* selected and the first part from each parent is copied to the corresponding
* child, and the second parts are copied crosswise.
*
* Example (2-point crossover):