bpp-phyl  2.1.0
bpp::DiscreteRatesAcrossSitesTreeLikelihood Class Reference

Interface for rate across sites (RAS) implementation. More...

#include <Bpp/Phyl/Likelihood/DiscreteRatesAcrossSitesTreeLikelihood.h>

+ Inheritance diagram for bpp::DiscreteRatesAcrossSitesTreeLikelihood:
+ Collaboration diagram for bpp::DiscreteRatesAcrossSitesTreeLikelihood:

List of all members.

Public Member Functions

 DiscreteRatesAcrossSitesTreeLikelihood ()
virtual ~DiscreteRatesAcrossSitesTreeLikelihood ()
virtual const
DiscreteDistribution
getRateDistribution () const =0
 Get the rate distribution used for the computation.
virtual DiscreteDistributiongetRateDistribution ()=0
 Get the rate distribution used for the computation.
virtual double getLikelihoodForASiteForARateClass (size_t site, size_t rateClass) const =0
 Get the likelihood for a site knowing its rate class.
virtual double getLogLikelihoodForASiteForARateClass (size_t site, size_t rateClass) const =0
 Get the logarithm of the likelihood for a site knowing its rate class.
virtual double getLikelihoodForASiteForARateClassForAState (size_t site, size_t rateClass, int state) const =0
 Get the likelihood for a site knowing its rate class and its ancestral state.
virtual double getLogLikelihoodForASiteForARateClassForAState (size_t site, size_t rateClass, int state) const =0
 Get the logarithm of the likelihood for a site knowing its rate class and its ancestral state.
virtual VVdouble getLikelihoodForEachSiteForEachRateClass () const =0
 Get the likelihood for each site and each rate class.
virtual VVdouble getLogLikelihoodForEachSiteForEachRateClass () const =0
 Get the logarithm of the likelihood for each site and each rate class.
virtual VVVdouble getLikelihoodForEachSiteForEachRateClassForEachState () const =0
 Get the likelihood for each site and each rate class and each state.
virtual VVVdouble getLogLikelihoodForEachSiteForEachRateClassForEachState () const =0
 Get the logarithm of the likelihood for each site and each rate class and each state.
virtual VVdouble getPosteriorProbabilitiesOfEachRate () const =0
 Get the posterior probability for each site of belonging to a particular rate class.
virtual std::vector< size_t > getRateClassWithMaxPostProbOfEachSite () const =0
 Get the posterior rate class (the one with maximum posterior probability) for each site.
virtual Vdouble getRateWithMaxPostProbOfEachSite () const =0
 Get the posterior rate (the one with maximum posterior probability) for each site.
virtual Vdouble getPosteriorRateOfEachSite () const =0
 Get the posterior rate, i.e. averaged over all classes and weighted with posterior probabilities, for each site.
virtual ParameterList getRateDistributionParameters () const =0
 Get the parameters associated to the rate distirbution.
virtual size_t getNumberOfClasses () const =0
 Get the number of classes.
virtual VVVdouble getTransitionProbabilitiesPerRateClass (int nodeId, size_t siteIndex) const =0
 Retrieves all Pij(t) for a particular branch, defined by the upper node.
TreeLikelihoodclone () const =0
virtual void setData (const SiteContainer &sites)=0
 Set the dataset for which the likelihood must be evaluated.
virtual const SiteContainergetData () const =0
 Get the dataset for which the likelihood must be evaluated.
virtual void initialize ()=0 throw (Exception)
 Init the likelihood object.
virtual bool isInitialized () const =0
virtual TreeLikelihoodDatagetLikelihoodData ()=0
virtual const TreeLikelihoodDatagetLikelihoodData () const =0
virtual double getLikelihoodForASite (size_t site) const =0
 Get the likelihood for a site.
virtual double getLogLikelihoodForASite (size_t site) const =0
 Get the logarithm of the likelihood for a site.
virtual double getLikelihoodForASiteForAState (size_t site, int state) const =0
 Get the likelihood for a site and for a state.
virtual double getLogLikelihoodForASiteForAState (size_t site, int state) const =0
 Get the logarithm of the likelihood for a site and for a state.
virtual Vdouble getLikelihoodForEachSite () const =0
 Get the likelihood for each site.
virtual Vdouble getLogLikelihoodForEachSite () const =0
 Get the logarithm of the likelihood for each site.
virtual VVdouble getLikelihoodForEachSiteForEachState () const =0
 Get the likelihood for each site and for each state.
virtual VVdouble getLogLikelihoodForEachSiteForEachState () const =0
 Get the logarithm of the likelihood for each site and for each state.
virtual double getLikelihood () const =0
 Get the likelihood for the whole dataset.
virtual double getLogLikelihood () const =0
 Get the logarithm of the likelihood for the whole dataset.
virtual const TreegetTree () const =0
 Get the tree (topology and branch lengths).
virtual size_t getNumberOfSites () const =0
 Get the number of sites in the dataset.
virtual size_t getNumberOfStates () const =0
 Get the number of states in the alphabet associated to the dataset.
virtual const AlphabetgetAlphabet () const =0
 Get the alphabet associated to the dataset.
virtual void enableDerivatives (bool yn)=0
 Tell if derivatives must be computed.
virtual ParameterList getDerivableParameters () const =0
 All derivable parameters.
virtual ParameterList getNonDerivableParameters () const =0
 All non derivable parameters.
virtual void enableSecondOrderDerivatives (bool yn)=0
virtual bool enableSecondOrderDerivatives () const =0
virtual double getSecondOrderDerivative (const std::string &variable) const =0
virtual double getSecondOrderDerivative (const std::string &variable1, const std::string &variable2) const =0
virtual double d2f (const std::string &variable, const ParameterList &parameters)
virtual double d2f (const std::string &variable1, const std::string &variable2, const ParameterList &parameters)
virtual void enableFirstOrderDerivatives (bool yn)=0
virtual bool enableFirstOrderDerivatives () const =0
virtual double getFirstOrderDerivative (const std::string &variable) const =0
virtual double df (const std::string &variable, const ParameterList &parameters)
virtual void setParameters (const ParameterList &parameters)=0
virtual double getValue () const =0
virtual double f (const ParameterList &parameters)
virtual bool hasParameter (const std::string &name) const =0
virtual const ParameterListgetParameters () const =0
virtual const ParametergetParameter (const std::string &name) const =0
virtual double getParameterValue (const std::string &name) const =0
virtual void setAllParametersValues (const ParameterList &parameters)=0
virtual void setParameterValue (const std::string &name, double value)=0
virtual void setParametersValues (const ParameterList &parameters)=0
virtual bool matchParametersValues (const ParameterList &parameters)=0
virtual size_t getNumberOfParameters () const =0
virtual void setNamespace (const std::string &prefix)=0
virtual std::string getNamespace () const =0
virtual std::string getParameterNameWithoutNamespace (const std::string &name) const =0
Retrieve some particular parameters subsets.
virtual ParameterList getBranchLengthsParameters () const =0
 Get the branch lengths parameters.
virtual ParameterList getSubstitutionModelParameters () const =0
 Get the parameters associated to substitution model(s).
virtual const SubstitutionModelgetSubstitutionModel (int nodeId, size_t siteIndex) const =0 throw (NodeNotFoundException)
 Get the substitution model associated to a given node and alignment column.
virtual SubstitutionModelgetSubstitutionModel (int nodeId, size_t siteIndex)=0 throw (NodeNotFoundException)
 Get the substitution model associated to a given node and alignment column.
virtual VVdouble getTransitionProbabilities (int nodeId, size_t siteIndex) const =0
 Retrieves all Pij(t) for a particular branch, defined by the upper node and site.
virtual ConstBranchModelIteratorgetNewBranchModelIterator (int nodeId) const =0
virtual ConstSiteModelIteratorgetNewSiteModelIterator (size_t siteIndex) const =0
virtual size_t getSiteIndex (size_t site) const =0 throw (IndexOutOfBoundsException)
 Get the index (used for inner computations) of a given site (original alignment column).
virtual const std::vector
< double > & 
getRootFrequencies (size_t siteIndex) const =0
 Get the values of the frequencies for each state in the alphabet at the root node.

Detailed Description

Interface for rate across sites (RAS) implementation.

This interface provides methods for dealing with RAS models.

Definition at line 56 of file DiscreteRatesAcrossSitesTreeLikelihood.h.


Constructor & Destructor Documentation


Member Function Documentation

virtual void bpp::TreeLikelihood::enableDerivatives ( bool  yn) [pure virtual, inherited]

Tell if derivatives must be computed.

This methods calls the enableFirstOrderDerivatives and enableSecondOrderDerivatives.

Parameters:
ynYes or no.

Implemented in bpp::AbstractTreeLikelihood.

virtual const Alphabet* bpp::TreeLikelihood::getAlphabet ( ) const [pure virtual, inherited]

Get the alphabet associated to the dataset.

Returns:
the alphabet associated to the dataset.

Implemented in bpp::AbstractTreeLikelihood.

virtual ParameterList bpp::TreeLikelihood::getBranchLengthsParameters ( ) const [pure virtual, inherited]

Get the branch lengths parameters.

Returns:
A ParameterList with all branch lengths.

Implemented in bpp::AbstractNonHomogeneousTreeLikelihood, bpp::AbstractHomogeneousTreeLikelihood, and bpp::TwoTreeLikelihood.

Referenced by bpp::OptimizationTools::ScaleFunction::ScaleFunction().

virtual const SiteContainer* bpp::TreeLikelihood::getData ( ) const [pure virtual, inherited]

Get the dataset for which the likelihood must be evaluated.

Returns:
A pointer toward the site container where the sequences are stored.

Implemented in bpp::AbstractTreeLikelihood.

virtual ParameterList bpp::TreeLikelihood::getDerivableParameters ( ) const [pure virtual, inherited]

All derivable parameters.

Usually, this contains all branch lengths parameters.

Returns:
A ParameterList.

Implemented in bpp::RHomogeneousClockTreeLikelihood, and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.

virtual double bpp::TreeLikelihood::getLikelihood ( ) const [pure virtual, inherited]
virtual double bpp::TreeLikelihood::getLikelihoodForASite ( size_t  site) const [pure virtual, inherited]

Get the likelihood for a site.

Parameters:
siteThe site index to analyse.
Returns:
The likelihood for site site.

Implemented in bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, and bpp::DRHomogeneousTreeLikelihood.

Referenced by bpp::AbstractTreeLikelihood::getLikelihoodForEachSite().

virtual double bpp::DiscreteRatesAcrossSitesTreeLikelihood::getLikelihoodForASiteForARateClass ( size_t  site,
size_t  rateClass 
) const [pure virtual]

Get the likelihood for a site knowing its rate class.

Parameters:
siteThe site index.
rateClassThe rate class index.
Returns:
The likelihood for the specified site and rate class.

Implemented in bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, and bpp::RHomogeneousMixedTreeLikelihood.

virtual double bpp::DiscreteRatesAcrossSitesTreeLikelihood::getLikelihoodForASiteForARateClassForAState ( size_t  site,
size_t  rateClass,
int  state 
) const [pure virtual]

Get the likelihood for a site knowing its rate class and its ancestral state.

Parameters:
siteThe site index.
rateClassThe rate class index.
stateThe ancestral state.
Returns:
The likelihood for the specified site and rate class and ancestral state.

Implemented in bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, and bpp::RHomogeneousMixedTreeLikelihood.

virtual double bpp::TreeLikelihood::getLikelihoodForASiteForAState ( size_t  site,
int  state 
) const [pure virtual, inherited]

Get the likelihood for a site and for a state.

Parameters:
siteThe site index to analyse.
stateThe state to consider.
Returns:
The likelihood for site site and state state.

Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.

Referenced by bpp::AbstractTreeLikelihood::getLikelihoodForEachSiteForEachState().

virtual Vdouble bpp::TreeLikelihood::getLikelihoodForEachSite ( ) const [pure virtual, inherited]

Get the likelihood for each site.

Returns:
A vector with all likelihoods for each site.

Implemented in bpp::AbstractTreeLikelihood.

Get the likelihood for each site and each rate class.

Returns:
A two-dimension vector with all likelihoods.

Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.

Get the likelihood for each site and each rate class and each state.

Returns:
A three-dimension vector with all likelihoods.

Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.

virtual VVdouble bpp::TreeLikelihood::getLikelihoodForEachSiteForEachState ( ) const [pure virtual, inherited]

Get the likelihood for each site and for each state.

Returns:
A 2d vector with all likelihoods for each site and for each state.

Implemented in bpp::AbstractTreeLikelihood.

virtual double bpp::TreeLikelihood::getLogLikelihood ( ) const [pure virtual, inherited]

Get the logarithm of the likelihood for the whole dataset.

Returns:
The logarithm of the likelihood of the dataset.

Implemented in bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, and bpp::DRHomogeneousMixedTreeLikelihood.

virtual double bpp::TreeLikelihood::getLogLikelihoodForASite ( size_t  site) const [pure virtual, inherited]

Get the logarithm of the likelihood for a site.

Parameters:
siteThe site index to analyse.
Returns:
The logarithm of the likelihood for site site.

Implemented in bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, and bpp::DRHomogeneousTreeLikelihood.

Referenced by bpp::AbstractTreeLikelihood::getLogLikelihoodForEachSite().

virtual double bpp::DiscreteRatesAcrossSitesTreeLikelihood::getLogLikelihoodForASiteForARateClass ( size_t  site,
size_t  rateClass 
) const [pure virtual]

Get the logarithm of the likelihood for a site knowing its rate class.

Parameters:
siteThe site index.
rateClassThe rate class index.
Returns:
The logarithm of the likelihood for the specified site and rate class.

Implemented in bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, and bpp::RHomogeneousMixedTreeLikelihood.

virtual double bpp::DiscreteRatesAcrossSitesTreeLikelihood::getLogLikelihoodForASiteForARateClassForAState ( size_t  site,
size_t  rateClass,
int  state 
) const [pure virtual]

Get the logarithm of the likelihood for a site knowing its rate class and its ancestral state.

Parameters:
siteThe site index.
rateClassThe rate class index.
stateThe ancestral state.
Returns:
The logarithm of the likelihood for the specified site and rate class and ancestral state..

Implemented in bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, and bpp::RHomogeneousMixedTreeLikelihood.

virtual double bpp::TreeLikelihood::getLogLikelihoodForASiteForAState ( size_t  site,
int  state 
) const [pure virtual, inherited]

Get the logarithm of the likelihood for a site and for a state.

Parameters:
siteThe site index to analyse.
stateThe state to consider.
Returns:
The logarithm of the likelihood for site site and state state.

Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.

Referenced by bpp::AbstractTreeLikelihood::getLogLikelihoodForEachSiteForEachState().

virtual Vdouble bpp::TreeLikelihood::getLogLikelihoodForEachSite ( ) const [pure virtual, inherited]

Get the logarithm of the likelihood for each site.

Returns:
A vector with all log likelihoods for each site.

Implemented in bpp::AbstractTreeLikelihood.

Get the logarithm of the likelihood for each site and each rate class.

Returns:
A two-dimension vector with all log likelihoods: V[i][j] = likelihood of site i and rate class j.

Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.

Get the logarithm of the likelihood for each site and each rate class and each state.

Returns:
A three-dimension vector with all log likelihoods: V[i][j][k} = likelihood of site i and rate class j and state k.

Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.

virtual VVdouble bpp::TreeLikelihood::getLogLikelihoodForEachSiteForEachState ( ) const [pure virtual, inherited]

Get the logarithm of the likelihood for each site and for each state.

Returns:
A 2d vector with all log likelihoods for each site and for each state.

Implemented in bpp::AbstractTreeLikelihood.

virtual ParameterList bpp::TreeLikelihood::getNonDerivableParameters ( ) const [pure virtual, inherited]

All non derivable parameters.

Usually, this contains all substitution model parameters and rate distribution.

Returns:
A ParameterList.

Implemented in bpp::RHomogeneousClockTreeLikelihood, and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.

virtual size_t bpp::TreeLikelihood::getNumberOfSites ( ) const [pure virtual, inherited]

Get the number of sites in the dataset.

Returns:
the number of sites in the dataset.

Implemented in bpp::AbstractTreeLikelihood.

virtual size_t bpp::TreeLikelihood::getNumberOfStates ( ) const [pure virtual, inherited]

Get the number of states in the alphabet associated to the dataset.

Returns:
the number of states in the alphabet associated to the dataset.

Implemented in bpp::AbstractTreeLikelihood.

Referenced by bpp::DRTreeLikelihoodTools::getPosteriorProbabilitiesForEachStateForEachRate(), and bpp::DRTreeLikelihoodTools::getPosteriorStateFrequencies().

Get the posterior probability for each site of belonging to a particular rate class.

Returns:
A two-dimension vector with all posterior probabilities: V[i][j] = probablity for site i of belonging to rate class j.

Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.

Get the posterior rate, i.e. averaged over all classes and weighted with posterior probabilities, for each site.

Returns:
A vector with all rates.

Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.

virtual std::vector<size_t> bpp::DiscreteRatesAcrossSitesTreeLikelihood::getRateClassWithMaxPostProbOfEachSite ( ) const [pure virtual]

Get the posterior rate class (the one with maximum posterior probability) for each site.

Returns:
A vector with all rate classes indexes.

Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.

Referenced by bpp::RASTools::getPosteriorRateDistribution().

Get the rate distribution used for the computation.

Returns:
A const pointer toward the rate distribution of this instance.

Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.

Referenced by bpp::DRTreeLikelihoodTools::getPosteriorProbabilitiesForEachStateForEachRate(), and bpp::RASTools::getPosteriorRateDistribution().

Get the rate distribution used for the computation.

Returns:
A pointer toward the rate distribution of this instance.

Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.

Get the parameters associated to the rate distirbution.

Returns:
A ParameterList object with all rate distribution parameters.

Implemented in bpp::AbstractNonHomogeneousTreeLikelihood, bpp::AbstractHomogeneousTreeLikelihood, and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.

Get the posterior rate (the one with maximum posterior probability) for each site.

Returns:
A vector with all rate classes indexes.

Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.

virtual const std::vector<double>& bpp::TreeLikelihood::getRootFrequencies ( size_t  siteIndex) const [pure virtual, inherited]

Get the values of the frequencies for each state in the alphabet at the root node.

For reversible models, these are the equilibrium frequencies. For non-reversible models, these usually are distinct parameters.

For models without site partitioning, the set of frequencies is the same for all positions. For partition models, the frequencies may differ from one site to another.

Parameters:
siteIndexThe index of the alignment position.
See also:
getSiteIndex
Returns:
A vector with ancestral frequencies for each state in the alphabet;

Implemented in bpp::AbstractNonHomogeneousTreeLikelihood, bpp::AbstractHomogeneousTreeLikelihood, and bpp::TwoTreeLikelihood.

virtual size_t bpp::TreeLikelihood::getSiteIndex ( size_t  site) const throw (IndexOutOfBoundsException) [pure virtual, inherited]

Get the index (used for inner computations) of a given site (original alignment column).

Parameters:
siteAn alignment position.
Returns:
The site index corresponding to the given input alignment position.

Implemented in bpp::RHomogeneousTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, and bpp::DRHomogeneousTreeLikelihood.

virtual const SubstitutionModel* bpp::TreeLikelihood::getSubstitutionModel ( int  nodeId,
size_t  siteIndex 
) const throw (NodeNotFoundException) [pure virtual, inherited]

Get the substitution model associated to a given node and alignment column.

Parameters:
nodeIdThe id of the request node.
siteIndexThe index of the alignment position.
See also:
getSiteIndex
Returns:
A pointer toward the corresponding model.
Exceptions:
NodeNotFoundExceptionThis exception may be thrown if the node is not found (depending on the implementation).

Implemented in bpp::TwoTreeLikelihood, bpp::NonHomogeneousTreeLikelihood, and bpp::HomogeneousTreeLikelihood.

virtual SubstitutionModel* bpp::TreeLikelihood::getSubstitutionModel ( int  nodeId,
size_t  siteIndex 
) throw (NodeNotFoundException) [pure virtual, inherited]

Get the substitution model associated to a given node and alignment column.

Parameters:
nodeIdThe id of the request node.
siteIndexThe index of the alignment position.
See also:
getSiteIndex
Returns:
A pointer toward the corresponding model.
Exceptions:
NodeNotFoundExceptionThis exception may be thrown if the node is not found (depending on the implementation).

Implemented in bpp::TwoTreeLikelihood, bpp::NonHomogeneousTreeLikelihood, and bpp::HomogeneousTreeLikelihood.

virtual ParameterList bpp::TreeLikelihood::getSubstitutionModelParameters ( ) const [pure virtual, inherited]

Get the parameters associated to substitution model(s).

Returns:
A ParameterList.

Implemented in bpp::AbstractNonHomogeneousTreeLikelihood, bpp::AbstractHomogeneousTreeLikelihood, and bpp::TwoTreeLikelihood.

virtual VVdouble bpp::TreeLikelihood::getTransitionProbabilities ( int  nodeId,
size_t  siteIndex 
) const [pure virtual, inherited]

Retrieves all Pij(t) for a particular branch, defined by the upper node and site.

These intermediate results may be used by other methods.

Parameters:
nodeIdThe node defining the branch of interest.
siteIndexThe index of the alignment position.
See also:
getSiteIndex
Returns:
An array of dimension 2, where a[x][y] is the probability of substituting from x to y.

Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.

virtual VVVdouble bpp::DiscreteRatesAcrossSitesTreeLikelihood::getTransitionProbabilitiesPerRateClass ( int  nodeId,
size_t  siteIndex 
) const [pure virtual]

Retrieves all Pij(t) for a particular branch, defined by the upper node.

These intermediate results may be used by other methods.

Parameters:
nodeIdThe node defining the branch of interest.
siteIndexThe position in the alignment.
Returns:
An array of dimension 3, where a[c][x][y] is the probability of substituting from x to y while being in rate class c.

Implemented in bpp::AbstractNonHomogeneousTreeLikelihood, bpp::AbstractHomogeneousTreeLikelihood, and bpp::TwoTreeLikelihood.

virtual void bpp::TreeLikelihood::initialize ( ) throw (Exception) [pure virtual, inherited]

Init the likelihood object.

This method is used to initialize all parameters. It is typically called after the constructor and the setData method. It contains virtual methods that can't be called in the constructor.

Exceptions:
Exceptionif something bad happened, for instance if no data are associated to the likelihood function.

Implemented in bpp::AbstractTreeLikelihood, bpp::RNonHomogeneousMixedTreeLikelihood, bpp::DRHomogeneousMixedTreeLikelihood, bpp::AbstractNonHomogeneousTreeLikelihood, bpp::AbstractHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, and bpp::RHomogeneousMixedTreeLikelihood.

virtual bool bpp::TreeLikelihood::isInitialized ( ) const [pure virtual, inherited]
Returns:
'true' is the likelihood function has been initialized.

Implemented in bpp::AbstractTreeLikelihood.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends