#random #rng #distribution #probability

rand_distr

Sampling from random number distributions

1 unstable release

✓ Uses Rust 2018 edition

0.2.2 Sep 9, 2019
0.2.1 Jun 28, 2019
0.2.0 Jun 12, 2019

#53 in Algorithms

Download history 399/week @ 2019-06-27 810/week @ 2019-07-04 425/week @ 2019-07-11 532/week @ 2019-07-18 678/week @ 2019-07-25 629/week @ 2019-08-01 455/week @ 2019-08-08 708/week @ 2019-08-15 953/week @ 2019-08-22 1368/week @ 2019-08-29 1839/week @ 2019-09-05 1338/week @ 2019-09-12 1184/week @ 2019-09-19 1182/week @ 2019-09-26 1592/week @ 2019-10-03

2,662 downloads per month
Used in 39 crates (30 directly)

MIT/Apache

425KB
7K SLoC

rand_distr

Build Status Build Status Latest version [Book API API Minimum rustc version

Implements a full suite of random number distributions sampling routines.

This crate is a super-set of the rand::distributions module, including support for sampling from Beta, Binomial, Cauchy, ChiSquared, Dirichlet, exponential, Fisher F, Gamma, Log-normal, Normal, Pareto, Poisson, StudentT, Triangular and Weibull distributions, as well as sampling points from the unit circle and unit sphere surface.

It is worth mentioning the statrs crate which provides similar functionality along with various support functions, including PDF and CDF computation. In contrast, this rand_distr crate focusses on sampling from distributions.

Unlike most Rand crates, rand_distr does not currently support no_std.

Links:

License

rand_distr is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT, and COPYRIGHT for details.

Dependencies