bpp-phyl3  3.0.0
bpp::BppORateDistributionFormat Class Reference

Rate Distribution I/O in BppO format. More...

#include <Bpp/Phyl/Io/BppORateDistributionFormat.h>

+ Inheritance diagram for bpp::BppORateDistributionFormat:
+ Collaboration diagram for bpp::BppORateDistributionFormat:

Public Member Functions

 BppORateDistributionFormat (bool allowConstant)
 Build a new BppORateDistributionFormat object. More...
 
virtual ~BppORateDistributionFormat ()
 
std::unique_ptr< DiscreteDistributionInterfacereadDiscreteDistribution (const std::string &distDescription, bool parseArguments)
 
void writeDiscreteDistribution (const DiscreteDistributionInterface &dist, OutputStream &out, std::map< std::string, std::string > &globalAliases, std::vector< std::string > &writtenNames) const
 
const std::string getFormatName () const
 
const std::string getFormatDescription () const
 
const std::map< std::string, std::string > & getUnparsedArguments () const
 
virtual const std::string getDataType () const
 

Protected Member Functions

void initialize_ (DiscreteDistributionInterface &rDist)
 

Protected Attributes

bool verbose_
 
std::map< std::string, std::string > unparsedArguments_
 

Private Attributes

bool allowConstant_
 

Detailed Description

Rate Distribution I/O in BppO format.

Creates a new discrete distribution object according to distribution description syntax (see the Bio++ Program Suite manual for a detailed description of this syntax).

Rate distributions are normalized and have a mean of 1, so that branch lengths are measured in mean number of substitutions per site.

See also
BppODiscreteDistribtution for a more generic parser.

Definition at line 25 of file BppORateDistributionFormat.h.

Constructor & Destructor Documentation

◆ BppORateDistributionFormat()

bpp::BppORateDistributionFormat::BppORateDistributionFormat ( bool  allowConstant)
inline

Build a new BppORateDistributionFormat object.

Parameters
allowConstantIs constant distribution allowed.

Definition at line 37 of file BppORateDistributionFormat.h.

◆ ~BppORateDistributionFormat()

virtual bpp::BppORateDistributionFormat::~BppORateDistributionFormat ( )
inlinevirtual

Definition at line 42 of file BppORateDistributionFormat.h.

Member Function Documentation

◆ readDiscreteDistribution()

◆ writeDiscreteDistribution()

Member Data Documentation

◆ allowConstant_

bool bpp::BppORateDistributionFormat::allowConstant_
private

Definition at line 29 of file BppORateDistributionFormat.h.


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