Skip to main content

Module sampling

Module sampling 

Source
Expand description

Random sampling with weights.

Structsยง

WeightedIndex
A collection of weights at fixed indices supporting proportional and uniform draws and updates.
WithoutReplacement
Draws from a WeightedIndex without repeating an index.