[−][src]Crate vose_alias
This module is an implementation of the Vose-Alias method, to sample an element from a list, given a discrete probability distribution.
This module contains function to create the Probability and Alias tables and sample from them.
The algorithm implemented follows the explanation given on this page
Structs
VoseAlias | A structure containing the necessary Vose-Alias tables. |