Module nyx_space::mc[][src]

Expand description

Monte Carlo module

Modules

helpers

Structs

Normal

The normal distribution N(mean, std_dev**2).

StdRng

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).

ThreadRng

A reference to the thread-local generator

Uniform

Sample values uniformly between two bounds.

Traits

CryptoRng

A marker trait used to indicate that an RngCore or BlockRngCore implementation is supposed to be cryptographically secure.

Distribution

Types (distributions) that can be used to create a random instance of T.

FromParallelIterator

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.

IndexedParallelIterator

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

IntoParallelIterator implements the conversion to a ParallelIterator.

IntoParallelRefIterator

IntoParallelRefIterator implements the conversion to a ParallelIterator, providing shared references to the data.

IntoParallelRefMutIterator

IntoParallelRefMutIterator implements the conversion to a ParallelIterator, providing mutable references to the data.

IteratorRandom

Extension trait on iterators, providing random sampling methods.

ParallelBridge

Conversion trait to convert an Iterator to a ParallelIterator.

ParallelDrainFull

ParallelDrainFull creates a parallel iterator that moves all items from a collection while retaining the original capacity.

ParallelDrainRange

ParallelDrainRange creates a parallel iterator that moves a range of items from a collection while retaining the original capacity.

ParallelExtend

ParallelExtend extends an existing collection with items from a ParallelIterator.

ParallelIterator

Parallel version of the standard iterator trait.

ParallelSlice

Parallel extensions for slices.

ParallelSliceMut

Parallel extensions for mutable slices.

ParallelString

Parallel extensions for strings.

Rng

An automatically-implemented extension trait on RngCore providing high-level generic methods for sampling values and other convenience methods.

RngCore

The core of a random number generator.

SeedableRng

A random number generator that can be explicitly seeded.

SliceRandom

Extension trait on slices, providing random mutation and sampling methods.

Functions

random

Generates a random value using the thread-local random number generator.

thread_rng

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

Pcg64Mcg

A friendly name for Mcg128Xsl64 (also known as pcg64_fast).