Quetzal-CoaTL
The Coalescence Template Library
Loading...
Searching...
No Matches
quetzal::coalescence::occupancy_spectrum::Support Class Reference

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

Detailed Description

Set of occupancy spectrums resulting from throwing \(n\) balls (the number of coalescing gene copies) into \(m\) urns (the number of parents).

Public Types

using occupancy_spectrum_type = OccupancySpectrum
 

Public Member Functions

 Support (int n, int m)
 Constructor.
 
template<class UnaryOperation >
void generate (UnaryOperation op) const
 Generate all possible configurations.
 

Constructor & Destructor Documentation

◆ Support()

quetzal::coalescence::occupancy_spectrum::Support::Support ( int  n,
int  m 
)
inline

Constructor.

Parameters
nnumber of balls to throw
mnumber of urns

Member Function Documentation

◆ generate()

template<class UnaryOperation >
void quetzal::coalescence::occupancy_spectrum::Support::generate ( UnaryOperation  op) const
inline

Generate all possible configurations.

Parameters
nnumber of balls to throw
mnumber of urns
opunary operation function object that will be applied to handle generated spectra. The signature of the function should be equivalent to the following: Ret fun(OccupancySpectrum && s);

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