rand::distr

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§

  • A distribution using weighted sampling of discrete items.

Enums§

  • Invalid weight errors

Traits§