Name Description Size
binomial.rs The binomial distribution. 12261
cauchy.rs The Cauchy distribution. 5235
dirichlet.rs The dirichlet distribution. 5231
exponential.rs The exponential distribution. 5174
frechet.rs The Fréchet distribution. 5180
gamma.rs The Gamma and derived distributions. 23146
geometric.rs The geometric distribution. 7558
gumbel.rs The Gumbel distribution. 4273
hypergeometric.rs The hypergeometric distribution. 16960
inverse_gaussian.rs 2914
lib.rs Generating random samples from probability distributions. ## Re-exports This crate is a super-set of the [`rand::distributions`] module. See the [`rand::distributions`] module documentation for an overview of the core [`Distribution`] trait and implementations. The following are re-exported: - The [`Distribution`] trait and [`DistIter`] helper type - The [`Standard`], [`Alphanumeric`], [`Uniform`], [`OpenClosed01`], [`Open01`], [`Bernoulli`], and [`WeightedIndex`] distributions ## Distributions This crate provides the following probability distributions: - Related to real-valued quantities that grow linearly (e.g. errors, offsets): - [`Normal`] distribution, and [`StandardNormal`] as a primitive - [`SkewNormal`] distribution - [`Cauchy`] distribution - Related to Bernoulli trials (yes/no events, with a given probability): - [`Binomial`] distribution - [`Geometric`] distribution - [`Hypergeometric`] distribution - Related to positive real-valued quantities that grow exponentially (e.g. prices, incomes, populations): - [`LogNormal`] distribution - Related to the occurrence of independent events at a given rate: - [`Pareto`] distribution - [`Poisson`] distribution - [`Exp`]onential distribution, and [`Exp1`] as a primitive - [`Weibull`] distribution - [`Gumbel`] distribution - [`Frechet`] distribution - [`Zeta`] distribution - [`Zipf`] distribution - Gamma and derived distributions: - [`Gamma`] distribution - [`ChiSquared`] distribution - [`StudentT`] distribution - [`FisherF`] distribution - Triangular distribution: - [`Beta`] distribution - [`Triangular`] distribution - Multivariate probability distributions - [`Dirichlet`] distribution - [`UnitSphere`] distribution - [`UnitBall`] distribution - [`UnitCircle`] distribution - [`UnitDisc`] distribution - Alternative implementation for weighted index sampling - [`WeightedAliasIndex`] distribution - Misc. distributions - [`InverseGaussian`] distribution - [`NormalInverseGaussian`] distribution 7688
normal.rs The normal and derived distributions. 11799
normal_inverse_gaussian.rs 3097
pareto.rs The Pareto distribution. 3690
pert.rs The PERT distribution. 4465
poisson.rs The Poisson distribution. 5880
skew_normal.rs The Skew Normal distribution. 7277
triangular.rs The triangular distribution. 4136
unit_ball.rs 1480
unit_circle.rs 2133
unit_disc.rs 1379
unit_sphere.rs 2101
utils.rs Math helper functions 4637
weibull.rs The Weibull distribution. 3556
weighted_alias.rs This module contains an implementation of alias method for sampling random indices with probabilities proportional to a collection of weights. 17812
ziggurat_tables.rs 24792
zipf.rs The Zeta and related distributions. 10177