Struct monster::engine::rarity_simulation::RaritySimulationOptions[][src]

pub struct RaritySimulationOptions {
    pub memory_size: ByteSize,
    pub amount_of_states: usize,
    pub step_size: u64,
    pub selection: usize,
    pub iterations: u64,
    pub copy_init_ratio: f64,
    pub mean: MeanType,
}

Fields

memory_size: ByteSize

The size of the machine’s memory

amount_of_states: usize

The number of states to pursue

step_size: u64

The amount of instructions to execute for each state on each iteration

selection: usize

Amount of (rarest) states that shall be further considered at the end of each iteration.

iterations: u64

The amount of rarity simulation iterations to perform

copy_init_ratio: f64

After discarding least rare and exited states, determines how much new states shall be copied from the remaining (rare) states and, in inverse, how much shall be newly created relative to the amount of missing states to archive number_of_states. Must be between 0 and 1.

mean: MeanType

The mean to use for determining state rarity

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

Returns the “default value” for a type. Read more

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.