Module nyx_space::mc [−][src]
Expand description
Monte Carlo module
Modules
Structs
The normal distribution N(mean, std_dev**2)
.
The standard RNG. The PRNG algorithm in StdRng
is chosen to be efficient
on the current platform, to be statistically strong and unpredictable
(meaning a cryptographically secure PRNG).
A reference to the thread-local generator
Sample values uniformly between two bounds.
Traits
A marker trait used to indicate that an RngCore
or BlockRngCore
implementation is supposed to be cryptographically secure.
Types (distributions) that can be used to create a random instance of T
.
FromParallelIterator
implements the creation of a collection
from a ParallelIterator
. By implementing
FromParallelIterator
for a given type, you define how it will be
created from an iterator.
An iterator that supports “random access” to its data, meaning that you can split it at arbitrary indices and draw data from those points.
IntoParallelIterator
implements the conversion to a ParallelIterator
.
IntoParallelRefIterator
implements the conversion to a
ParallelIterator
, providing shared references to the data.
IntoParallelRefMutIterator
implements the conversion to a
ParallelIterator
, providing mutable references to the data.
Extension trait on iterators, providing random sampling methods.
Conversion trait to convert an Iterator
to a ParallelIterator
.
ParallelDrainFull
creates a parallel iterator that moves all items
from a collection while retaining the original capacity.
ParallelDrainRange
creates a parallel iterator that moves a range of items
from a collection while retaining the original capacity.
ParallelExtend
extends an existing collection with items from a ParallelIterator
.
Parallel version of the standard iterator trait.
Parallel extensions for slices.
Parallel extensions for mutable slices.
Parallel extensions for strings.
An automatically-implemented extension trait on RngCore
providing high-level
generic methods for sampling values and other convenience methods.
The core of a random number generator.
A random number generator that can be explicitly seeded.
Extension trait on slices, providing random mutation and sampling methods.
Functions
Generates a random value using the thread-local random number generator.
Retrieve the lazily-initialized thread-local random number generator,
seeded by the system. Intended to be used in method chaining style,
e.g. thread_rng().gen::<i32>()
, or cached locally, e.g.
let mut rng = thread_rng();
. Invoked by the Default
trait, making
ThreadRng::default()
equivalent.
Type Definitions
A friendly name for Mcg128Xsl64
(also known as pcg64_fast
).