#include <quetzal/coalescence/occupancy_spectrum/sampling_policy.hpp>
template<class FilterPolicy = filter_policy::return_always_true, class EditorPolicy = editor_policy::identity>
struct quetzal::coalescence::occupancy_spectrum::sampling_policy::in_memoized_distribution< FilterPolicy, EditorPolicy >
Sample occupancy spectrums from a pre-computed ProbabilityDistribution object.
- Template Parameters
-
|
template<typename Generator > |
static auto const & | sample (int k, int N, Generator &g) |
| Sample an occupancy spectrum.
|
|
◆ sample()
template<class FilterPolicy = filter_policy::return_always_true, class EditorPolicy = editor_policy::identity>
template<typename Generator >
Sample an occupancy spectrum.
- Template Parameters
-
Generator | A random number generator type |
- Parameters
-
k | the number of balls (lineages) to throw (coalesce) |
N | the nummber of urns (parents) |
g | random number generator |
- Returns
- a random OccupancySpectrum object
The documentation for this struct was generated from the following file:
- /home/runner/work/quetzal-CoaTL/quetzal-CoaTL/src/include/quetzal/coalescence/occupancy_spectrum/sampling_policy.hpp