Crate rand_distr

Source
Expand description

Generating random samples from probability distributions.

§Re-exports

This crate is a super-set of the rand::distr module. See the rand::distr module documentation for an overview of the core Distribution trait and implementations.

The following are re-exported:

§Distributions

This crate provides the following probability distributions:

Re-exports§

Modules§

  • A distribution uniformly sampling numbers within a given range.
  • This module contains an implementation of alias method for sampling random indices with probabilities proportional to a collection of weights.
  • This module contains an implementation of a tree structure for sampling random indices with probabilities proportional to a collection of weights.

Structs§

Enums§

Traits§

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