Enum monster::engine::rarity_simulation::MeanType[][src]

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Names of the variants of this enum

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.