Expand description
A list implementation for weighted randomisation.
See WeightedList for more.
Macros§
- wit
- Construct a
WeightedItemfrom a `(weight, value)`` pair. - wlist
- Construct a
WeightedListfrom the provided `(weight, value)`` pairs.
Structs§
- Weighted
Item - An item in a
WeightedList, with avalueof typeVand aweightof numerical typeW. - Weighted
List - A homogeneous list of weighted items with values of type
Vand weights of numerical typeW.