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

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

Detailed Description

Definition at line 237 of file distributions.hpp.

Public Member Functions

 SimulatorPendantLengthDistribution ()=default
 
 SimulatorPendantLengthDistribution (SimulatorPendantLengthDistribution const &)=default
 
 SimulatorPendantLengthDistribution (SimulatorPendantLengthDistribution &&)=default
 
 ~SimulatorPendantLengthDistribution ()=default
 
double generate (PlacementTreeEdge const &edge)
 Return a randomly chosen position on an edge. More...
 
SimulatorPendantLengthDistributionoperator= (SimulatorPendantLengthDistribution const &)=default
 
SimulatorPendantLengthDistributionoperator= (SimulatorPendantLengthDistribution &&)=default
 
void prepare (Sample const &sample)
 Prepare the distribution for usage. Needs to be called before generate(). More...
 

Public Attributes

double max = 1.0
 
double min = 0.0
 

Constructor & Destructor Documentation

Member Function Documentation

double generate ( PlacementTreeEdge const &  edge)
inline

Return a randomly chosen position on an edge.

Definition at line 270 of file distributions.hpp.

void prepare ( Sample const &  sample)
inline

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

Definition at line 261 of file distributions.hpp.

Member Data Documentation

double max = 1.0

Definition at line 285 of file distributions.hpp.

double min = 0.0

Definition at line 284 of file distributions.hpp.


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