pub struct MonteCarlo<S: InterpState, Distr: Distribution<f64> + Copy> where
    DefaultAllocator: Allocator<f64, S::Size> + Allocator<f64, S::Size, S::Size> + Allocator<f64, S::VecLength> + Allocator<usize, S::Size, S::Size>, 
{ pub seed: u64, pub generator: Generator<S, Distr>, pub scenario: String, }
Expand description

A Monte Carlo framework, automatically running on all threads via a thread pool. This framework is targeted toward analysis of time-continuous variables. One caveat of the design is that the trajectory is used for post processing, not each individual state. This may prevent some event switching from being shown in GNC simulations.

Fields

seed: u64generator: Generator<S, Distr>

Generator of states for the Monte Carlo run

scenario: String

Name of this run, will be reflected in the progress bar and in the output structure

Implementations

Generate states and propagate each independently until a specific event is found trigger times.

Generate states and propagate each independently until a specific event is found trigger times.

Generate states and propagate each independently until a specific event is found trigger times.

Resumes a Monte Carlo run by skipping the first skip items, generating states only after that, and propagate each independently until the specified epoch.

Set up the seed and generate the states. This is useful for checking the generated states before running a large scale Monte Carlo.

Trait Implementations

Formats the value using the given formatter. Read more

Returns a filename friendly name

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Method to serialize generic items, slices, and slices of Vecs. Can be also implemented on any other types. Read more

Method to serialize and render the resulting string in bold green. This is the default implementation applicable to all types that trait Printing is implemented for Read more

Method to serialize and render the resulting string in bold red.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

Converts the given value to a String. 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.