[−][src]Trait optlib::genetic::Cross
The trait with cross algorithm.
T
- type of a point in the search space for goal function (chromosomes).
Required methods
fn cross(&mut self, parents: &[&T]) -> Vec<T>
The method accepts slice of references to parent chromosomes (parents
),
must return vector of chromosomes of children. The children will be added to population
after mutation.