A library for working with phylogenetic and population genetic data.
v0.32.0
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 &&)=default
 
 SimulatorLikeWeightRatioDistribution (SimulatorLikeWeightRatioDistribution const &)=default
 
 ~SimulatorLikeWeightRatioDistribution ()=default
 
double generate ()
 Return a randomly chosen like weight ratio. More...
 
SimulatorLikeWeightRatioDistributionoperator= (SimulatorLikeWeightRatioDistribution &&)=default
 
SimulatorLikeWeightRatioDistributionoperator= (SimulatorLikeWeightRatioDistribution const &)=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

◆ SimulatorLikeWeightRatioDistribution() [1/3]

◆ ~SimulatorLikeWeightRatioDistribution()

◆ SimulatorLikeWeightRatioDistribution() [2/3]

◆ SimulatorLikeWeightRatioDistribution() [3/3]

Member Function Documentation

◆ generate()

double generate ( )
inline

Return a randomly chosen like weight ratio.

Definition at line 214 of file distributions.hpp.

◆ operator=() [1/2]

◆ operator=() [2/2]

◆ prepare()

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

◆ intervals

std::vector<double> intervals

Definition at line 225 of file distributions.hpp.

◆ weights

std::vector<double> weights

Definition at line 226 of file distributions.hpp.


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