|
StochTree 0.4.1
|
#include <distributions.h>
Walker-Vose alias method for sampling with replacement from a weighted discrete distribution.
Simplified from https://github.com/boostorg/random/blob/develop/include/boost/random/discrete_distribution.hpp Other references: https://en.wikipedia.org/wiki/Alias_method