pub struct LinearRanking {
pub pressure: f64,
pub sampling: Sampling,
}Expand description
Linear ranking selection (Baker 1985) with selective pressure s ∈ [1, 2]: the best of
n individuals is expected to be chosen s times per n picks, the worst 2 - s
times. The Evolutionary Programmer’s scores 1.2 (best) to 0.8 (worst) are s = 1.2.
Fields§
§pressure: f64The selective pressure, clamped to [1, 2].
sampling: SamplingRoulette or stochastic universal sampling.
Trait Implementations§
Source§impl Clone for LinearRanking
impl Clone for LinearRanking
impl Copy for LinearRanking
Source§impl Debug for LinearRanking
impl Debug for LinearRanking
Source§impl Default for LinearRanking
impl Default for LinearRanking
Source§impl PartialEq for LinearRanking
impl PartialEq for LinearRanking
Source§impl Selection for LinearRanking
impl Selection for LinearRanking
impl StructuralPartialEq for LinearRanking
Auto Trait Implementations§
impl Forget for LinearRanking
impl Freeze for LinearRanking
impl Move for LinearRanking
impl RefUnwindSafe for LinearRanking
impl Send for LinearRanking
impl Sync for LinearRanking
impl Unpin for LinearRanking
impl UnsafeUnpin for LinearRanking
impl UnwindSafe for LinearRanking
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