rand_distr

Module weighted_tree

Source
Expand description

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

Structsยง

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