pub struct MaximizeSelector { /* private fields */ }๐Deprecated since 1.7.7: The
MaximizeSelector has bad performance due to sorting. For better performance with potentially different results, use the UnstableMaximizeSelector.Expand description
Selects best performing phenotypes from the population.
Implementationsยง
Sourceยงimpl MaximizeSelector
impl MaximizeSelector
Sourcepub fn new(count: usize) -> MaximizeSelector
pub fn new(count: usize) -> MaximizeSelector
Create and return a maximizing selector.
Such a selector selects only the count best performing phenotypes
as parents.
count: must be larger than zero, a multiple of two and less than the population size.
Trait Implementationsยง
Sourceยงimpl Clone for MaximizeSelector
impl Clone for MaximizeSelector
Sourceยงfn clone(&self) -> MaximizeSelector
fn clone(&self) -> MaximizeSelector
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl Debug for MaximizeSelector
impl Debug for MaximizeSelector
Sourceยงimpl<T, F> Selector<T, F> for MaximizeSelector
impl<T, F> Selector<T, F> for MaximizeSelector
impl Copy for MaximizeSelector
Auto Trait Implementationsยง
impl Freeze for MaximizeSelector
impl RefUnwindSafe for MaximizeSelector
impl Send for MaximizeSelector
impl Sync for MaximizeSelector
impl Unpin for MaximizeSelector
impl UnwindSafe for MaximizeSelector
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