Module std::rand::distributions
[−]
[src]
rand
): use rand
from crates.io
Sampling from random distributions.
This is a generalization of Rand
to allow parameters to control the
exact properties of the generated values, e.g. the mean and standard
deviation of a normal distribution. The Sample
trait is the most
general, and allows for generating values that change some state
internally. The IndependentSample
trait is for generating values
that do not need to record state.
Modules
exponential |
[Unstable] The exponential distribution. |
gamma |
[Unstable] The Gamma and derived distributions. |
normal |
[Unstable] The normal and derived distributions. |
range |
[Unstable] Generating numbers between two others. |
Structs
ChiSquared |
[Unstable] The chi-squared distribution |
Exp |
[Unstable] The exponential distribution |
FisherF |
[Unstable] The Fisher F distribution |
Gamma |
[Unstable] The Gamma distribution |
LogNormal |
[Unstable] The log-normal distribution |
Normal |
[Unstable] The normal distribution |
RandSample |
[Unstable] A wrapper for generating types that implement |
Range |
[Unstable] Sample values uniformly between two bounds. |
StudentT |
[Unstable] The Student t distribution, |
Weighted |
[Unstable] A value with a particular weight for use with |
WeightedChoice |
[Unstable] A distribution that selects from a finite collection of weighted items. |
Traits
IndependentSample |
[Unstable]
|
Sample |
[Unstable] Types that can be used to create a random instance of |