pub enum MeanType {
Arithmetic,
Harmonic,
}Expand description
Strategy for mean calculation
Based on the value counters, the rarity simulator calculates a score that is used to determine a state’s rarity. This score is essential for the decision which states shall be further pursued and which shall be discarded.
Variants§
Arithmetic
Mean is calculated using the arithmetic mean, i.e. the sum of all statistic counters divided by the amount of states. Lower scores are more rare
Harmonic
Mean is calculated using the harmonic mean, i.e. the amount of states divided by the sum of residues of statistic counters. Higher scores are more rare.
Trait Implementations§
Source§impl VariantNames for MeanType
impl VariantNames for MeanType
impl Copy for MeanType
Auto Trait Implementations§
impl Freeze for MeanType
impl RefUnwindSafe for MeanType
impl Send for MeanType
impl Sync for MeanType
impl Unpin for MeanType
impl UnwindSafe for MeanType
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