bpp-phyl3  3.0.0
bpp::RASTools Class Reference

Tools to deal with Rates Across Sites (RAS) models. More...

#include <Bpp/Phyl/Legacy/Likelihood/RASTools.h>

Static Public Member Functions

static std::unique_ptr< DiscreteDistributionInterfacegetPosteriorRateDistribution (const DiscreteRatesAcrossSitesTreeLikelihoodInterface &treeLikelihood)
 Get the rate distribution estimated from a dataset. More...
 

Detailed Description

Tools to deal with Rates Across Sites (RAS) models.

Definition at line 17 of file RASTools.h.

Member Function Documentation

◆ getPosteriorRateDistribution()

unique_ptr< DiscreteDistributionInterface > RASTools::getPosteriorRateDistribution ( const DiscreteRatesAcrossSitesTreeLikelihoodInterface treeLikelihood)
static

Get the rate distribution estimated from a dataset.

This methods takes an object implementing the DiscreteRatesAcroossSites interface as input and use the posterior probabilities of rates for each site to generate the corresponding distribution.

Parameters
treeLikelihoodA Likelihood calculation implementing the RAS model interface.
Returns
The posterior distribution of rate classes.

Definition at line 16 of file RASTools.cpp.

References bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface::getRateClassWithMaxPostProbPerSite(), and bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface::getRateDistribution().


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