Module dist

Source
Expand description

Distributions sampled as part of a State.

Structs§

Dist
A distribution used in a State. Can be sampled to get a value. The value is clamped to the range [start, max] if both are set.

Enums§

DistType
DistType represents the type of a Dist. Supports a wide range of different distributions. Some are probably useless and some are probably missing. Uses the rand_distr crate for sampling.

Constants§

DIST_MIN_PROBABILITY
The minimum probability of a Dist with a probability parameter. This is set to prevent poor sampling performance for low probabilities. Set to 1e-9.