![]() |
Quetzal-CoaTL
The Coalescence Template Library
|
#include <quetzal/coalescence/occupancy_spectrum/sampling_policy.hpp>
Sample occupancy spectrums by simulating a ball to urn assignment random experiment.
Static Public Member Functions | |
template<typename Generator > | |
static auto | sample (int k, int N, Generator &g) |
Sample an occupancy spectrum. | |
|
inlinestatic |
Sample an occupancy spectrum.
Generator | A random number generator type |
k | the number of balls (lineages) to throw (coalesce) |
N | the nummber of urns (parents) |
g | random number generator |