pub enum SelectionChoice {
Tournament(usize),
Truncation(f64),
Roulette,
Ranking(f64),
}Expand description
A selection operator chosen by the genome.
Variants§
Tournament(usize)
A tournament of the given size.
Truncation(f64)
Truncation to the given fraction.
Roulette
Fitness-proportional roulette.
Ranking(f64)
Linear ranking with the given pressure, sampled universally.
Trait Implementations§
Source§impl Clone for SelectionChoice
impl Clone for SelectionChoice
impl Copy for SelectionChoice
Source§impl Debug for SelectionChoice
impl Debug for SelectionChoice
Source§impl PartialEq for SelectionChoice
impl PartialEq for SelectionChoice
Source§impl Selection for SelectionChoice
impl Selection for SelectionChoice
impl StructuralPartialEq for SelectionChoice
Auto Trait Implementations§
impl Forget for SelectionChoice
impl Freeze for SelectionChoice
impl Move for SelectionChoice
impl RefUnwindSafe for SelectionChoice
impl Send for SelectionChoice
impl Sync for SelectionChoice
impl Unpin for SelectionChoice
impl UnsafeUnpin for SelectionChoice
impl UnwindSafe for SelectionChoice
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more