A toolkit for working with phylogenetic data.
v0.20.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SimulatorEdgeDistribution Class Reference

#include <genesis/placement/simulator/distributions.hpp>

Detailed Description

Definition at line 49 of file distributions.hpp.

Public Member Functions

 SimulatorEdgeDistribution ()=default
 
 SimulatorEdgeDistribution (SimulatorEdgeDistribution const &)=default
 
 SimulatorEdgeDistribution (SimulatorEdgeDistribution &&)=default
 
 ~SimulatorEdgeDistribution ()=default
 
size_t generate ()
 Return a randomly chosen edge index, according to the distribution. More...
 
SimulatorEdgeDistributionoperator= (SimulatorEdgeDistribution const &)=default
 
SimulatorEdgeDistributionoperator= (SimulatorEdgeDistribution &&)=default
 
void prepare (Sample const &sample)
 Prepare the distribution for usage. Needs to be called before generate(). More...
 

Public Attributes

std::vector< double > edge_weights
 

Constructor & Destructor Documentation

Member Function Documentation

size_t generate ( )
inline

Return a randomly chosen edge index, according to the distribution.

Definition at line 94 of file distributions.hpp.

SimulatorEdgeDistribution& operator= ( SimulatorEdgeDistribution const &  )
default
void prepare ( Sample const &  sample)
inline

Prepare the distribution for usage. Needs to be called before generate().

Definition at line 73 of file distributions.hpp.

Member Data Documentation

std::vector<double> edge_weights

Definition at line 105 of file distributions.hpp.


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