mc2lib
|
Example CrossoverMutateFunc implementations. More...
Functions | |
template<class URNG , class GenomeT , class C , bool one_point = false, bool theone = false> | |
void | CutSpliceMutate (URNG &urng, const GenomeT &mate1, const GenomeT &mate2, float mutation_rate, C *container) |
Example CrossoverMutateFunc implementations.
|
inline |
Cut & splice. If template parameter one_point is set, turns this into one-point crossover.
Assumes that GenomeT implements get() and uses a vector-like structure to represent the genome.