Module weighted

Source
Expand description

Weighted (index) sampling

Primarily, this module houses the WeightedIndex distribution. See also rand_distr::weighted for alternative implementations supporting potentially-faster sampling or a more easily modifiable tree structure.

Structs§

WeightedIndex
A distribution using weighted sampling of discrete items.

Enums§

Error
Invalid weight errors

Traits§

Weight
Bounds on a weight