Quetzal-CoaTL
The Coalescence Template Library
Loading...
Searching...
No Matches
quetzal::coalescence::occupancy_spectrum::sampling_policy::on_the_fly Struct Reference

#include <quetzal/coalescence/occupancy_spectrum/sampling_policy.hpp>

Detailed Description

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.
 

Member Function Documentation

◆ sample()

template<typename Generator >
static auto quetzal::coalescence::occupancy_spectrum::sampling_policy::on_the_fly::sample ( int  k,
int  N,
Generator &  g 
)
inlinestatic

Sample an occupancy spectrum.

Template Parameters
GeneratorA random number generator type
Parameters
kthe number of balls (lineages) to throw (coalesce)
Nthe nummber of urns (parents)
grandom number generator
Returns
a random OccupancySpectrum object

The documentation for this struct was generated from the following file: