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

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

Detailed Description

Definition at line 185 of file distributions.hpp.

Public Member Functions

 SimulatorLikeWeightRatioDistribution ()=default
 
 SimulatorLikeWeightRatioDistribution (SimulatorLikeWeightRatioDistribution const &)=default
 
 SimulatorLikeWeightRatioDistribution (SimulatorLikeWeightRatioDistribution &&)=default
 
 ~SimulatorLikeWeightRatioDistribution ()=default
 
double generate ()
 Return a randomly chosen like weight ratio. More...
 
SimulatorLikeWeightRatioDistributionoperator= (SimulatorLikeWeightRatioDistribution const &)=default
 
SimulatorLikeWeightRatioDistributionoperator= (SimulatorLikeWeightRatioDistribution &&)=default
 
void prepare (Sample const &sample)
 Prepare the distribution for usage. Needs to be called before generate(). More...
 

Public Attributes

std::vector< double > intervals
 
std::vector< double > weights
 

Constructor & Destructor Documentation

Member Function Documentation

double generate ( )
inline

Return a randomly chosen like weight ratio.

Definition at line 214 of file distributions.hpp.

void prepare ( Sample const &  sample)

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

Definition at line 223 of file distributions.cpp.

Member Data Documentation

std::vector<double> intervals

Definition at line 225 of file distributions.hpp.

std::vector<double> weights

Definition at line 226 of file distributions.hpp.


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