Module rand_distr::weighted_alias

source ·
Expand description

This module contains an implementation of alias method for sampling random indices with probabilities proportional to a collection of weights.

Structs§

  • A distribution using weighted sampling to pick a discretely selected item.

Traits§