bpp-phyl
2.2.0
|
Partial implementation for homogeneous model of the TreeLikelihood interface. More...
#include <Bpp/Phyl/Likelihood/AbstractHomogeneousTreeLikelihood.h>
Classes | |
class | ConstHomogeneousSiteModelIterator |
Public Member Functions | |
AbstractHomogeneousTreeLikelihood (const Tree &tree, SubstitutionModel *model, DiscreteDistribution *rDist, bool checkRooted=true, bool verbose=true) throw (Exception) | |
AbstractHomogeneousTreeLikelihood (const AbstractHomogeneousTreeLikelihood &lik) | |
Copy constructor. More... | |
AbstractHomogeneousTreeLikelihood & | operator= (const AbstractHomogeneousTreeLikelihood &lik) |
Assignation operator. More... | |
virtual | ~AbstractHomogeneousTreeLikelihood () |
virtual void | initParameters () |
This builds the parameters list from all parametrizable objects, i.e. substitution model, rate distribution and tree. More... | |
virtual void | applyParameters () throw (Exception) |
All parameters are stored in a parameter list. This function apply these parameters to the substitution model, to the rate distribution and to the branch lengths. More... | |
virtual void | initBranchLengthsParameters () |
virtual void | setMinimumBranchLength (double minimum) throw (Exception) |
virtual void | setMaximumBranchLength (double maximum) throw (Exception) |
virtual double | getMinimumBranchLength () const |
virtual double | getMaximumBranchLength () const |
HomogeneousTreeLikelihood * | clone () const =0 |
virtual void | setData (const SiteContainer &sites)=0 |
Set the dataset for which the likelihood must be evaluated. More... | |
virtual const SiteContainer * | getData () const =0 |
Get the dataset for which the likelihood must be evaluated. More... | |
virtual bool | isInitialized () const =0 |
virtual TreeLikelihoodData * | getLikelihoodData ()=0 |
virtual const TreeLikelihoodData * | getLikelihoodData () const =0 |
virtual double | getLikelihoodForASite (size_t site) const =0 |
Get the likelihood for a site. More... | |
virtual double | getLogLikelihoodForASite (size_t site) const =0 |
Get the logarithm of the likelihood for a site. More... | |
virtual double | getLikelihoodForASiteForAState (size_t site, int state) const =0 |
Get the likelihood for a site and for a state. More... | |
virtual double | getLogLikelihoodForASiteForAState (size_t site, int state) const =0 |
Get the logarithm of the likelihood for a site and for a state. More... | |
virtual Vdouble | getLikelihoodForEachSite () const =0 |
Get the likelihood for each site. More... | |
virtual Vdouble | getLogLikelihoodForEachSite () const =0 |
Get the logarithm of the likelihood for each site. More... | |
virtual VVdouble | getLikelihoodForEachSiteForEachState () const =0 |
Get the likelihood for each site and for each state. More... | |
virtual VVdouble | getLogLikelihoodForEachSiteForEachState () const =0 |
Get the logarithm of the likelihood for each site and for each state. More... | |
virtual double | getLikelihood () const =0 |
Get the likelihood for the whole dataset. More... | |
virtual double | getLogLikelihood () const =0 |
Get the logarithm of the likelihood for the whole dataset. More... | |
virtual const Tree & | getTree () const =0 |
Get the tree (topology and branch lengths). More... | |
virtual size_t | getNumberOfSites () const =0 |
Get the number of sites in the dataset. More... | |
virtual const Alphabet * | getAlphabet () const =0 |
Get the alphabet associated to the dataset. More... | |
virtual void | enableDerivatives (bool yn)=0 |
Tell if derivatives must be computed. More... | |
virtual ParameterList | getDerivableParameters () const =0 |
All derivable parameters. More... | |
virtual ParameterList | getNonDerivableParameters () const =0 |
All non derivable parameters. More... | |
virtual double | getLikelihoodForASiteForARateClass (size_t site, size_t rateClass) const =0 |
Get the likelihood for a site knowing its rate class. More... | |
virtual double | getLogLikelihoodForASiteForARateClass (size_t site, size_t rateClass) const =0 |
Get the logarithm of the likelihood for a site knowing its rate class. More... | |
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. More... | |
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. More... | |
The TreeLikelihood interface. | |
Other methods are implemented in the AbstractTreeLikelihood class. | |
size_t | getNumberOfStates () const |
const std::vector< int > & | getAlphabetStates () const |
int | getAlphabetStateAsInt (size_t i) const |
std::string | getAlphabetStateAsChar (size_t i) const |
void | initialize () throw (Exception) |
Init the likelihood object. More... | |
ParameterList | getBranchLengthsParameters () const |
Get the branch lengths parameters. More... | |
ParameterList | getSubstitutionModelParameters () const |
Get the parameters associated to substitution model(s). More... | |
ParameterList | getRateDistributionParameters () const |
Get the parameters associated to the rate distirbution. More... | |
const std::vector< double > & | getRootFrequencies (size_t siteIndex) const |
Get the values of the frequencies for each state in the alphabet at the root node. More... | |
VVVdouble | getTransitionProbabilitiesPerRateClass (int nodeId, size_t siteIndex) const |
Retrieves all Pij(t) for a particular branch, defined by the upper node. More... | |
ConstBranchModelIterator * | getNewBranchModelIterator (int nodeId) const |
ConstSiteModelIterator * | getNewSiteModelIterator (size_t siteIndex) const |
The HomogeneousTreeLikelihood interface. | |
Other methods are implemented in the AbstractTreeLikelihood class. | |
const SubstitutionModel * | getSubstitutionModel () const |
const SubstitutionModel * | getSubstitutionModel (int nodeId, size_t siteIndex) const throw (NodeNotFoundException) |
Get the substitution model associated to a given node and alignment column. More... | |
SubstitutionModel * | getSubstitutionModel () |
SubstitutionModel * | getSubstitutionModel (int nodeId, size_t siteIndex) throw (NodeNotFoundException) |
Get the substitution model associated to a given node and alignment column. More... | |
void | setSubstitutionModel (SubstitutionModel *model) throw (Exception) |
Retrieve some particular parameters subsets. | |
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. More... | |
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). More... | |
The TreeLikelihood interface. | |
Other methods are implemented in the AbstractTreeLikelihood class. | |
double | getLikelihoodForASiteForAState (size_t site, int state) const |
Get the likelihood for a site and for a state. More... | |
double | getLogLikelihoodForASiteForAState (size_t site, int state) const |
Get the logarithm of the likelihood for a site and for a state. More... | |
ParameterList | getDerivableParameters () const |
All derivable parameters. More... | |
ParameterList | getNonDerivableParameters () const |
All non derivable parameters. More... | |
VVdouble | getTransitionProbabilities (int nodeId, size_t siteIndex) const |
Retrieves all Pij(t) for a particular branch, defined by the upper node and site. More... | |
The DiscreteRatesAcrossSites interface implementation: | |
const DiscreteDistribution * | getRateDistribution () const |
Get the rate distribution used for the computation. More... | |
DiscreteDistribution * | getRateDistribution () |
Get the rate distribution used for the computation. More... | |
size_t | getNumberOfClasses () const |
Get the number of classes. More... | |
VVdouble | getLikelihoodForEachSiteForEachRateClass () const |
Get the likelihood for each site and each rate class. More... | |
VVdouble | getLogLikelihoodForEachSiteForEachRateClass () const |
Get the logarithm of the likelihood for each site and each rate class. More... | |
VVVdouble | getLikelihoodForEachSiteForEachRateClassForEachState () const |
Get the likelihood for each site and each rate class and each state. More... | |
VVVdouble | getLogLikelihoodForEachSiteForEachRateClassForEachState () const |
Get the logarithm of the likelihood for each site and each rate class and each state. More... | |
VVdouble | getPosteriorProbabilitiesOfEachRate () const |
Get the posterior probability for each site of belonging to a particular rate class. More... | |
Vdouble | getRateWithMaxPostProbOfEachSite () const |
Get the posterior rate (the one with maximum posterior probability) for each site. More... | |
std::vector< size_t > | getRateClassWithMaxPostProbOfEachSite () const |
Get the posterior rate class (the one with maximum posterior probability) for each site. More... | |
Vdouble | getPosteriorRateOfEachSite () const |
Get the posterior rate, i.e. averaged over all classes and weighted with posterior probabilities, for each site. More... | |
The TreeLikelihood interface. | |
const SiteContainer * | getData () const |
Get the dataset for which the likelihood must be evaluated. More... | |
const Alphabet * | getAlphabet () const |
Get the alphabet associated to the dataset. More... | |
Vdouble | getLikelihoodForEachSite () const |
Get the likelihood for each site. More... | |
Vdouble | getLogLikelihoodForEachSite () const |
Get the logarithm of the likelihood for each site. More... | |
VVdouble | getLikelihoodForEachSiteForEachState () const |
Get the likelihood for each site and for each state. More... | |
VVdouble | getLogLikelihoodForEachSiteForEachState () const |
Get the logarithm of the likelihood for each site and for each state. More... | |
size_t | getNumberOfSites () const |
Get the number of sites in the dataset. More... | |
const Tree & | getTree () const |
Get the tree (topology and branch lengths). More... | |
void | enableDerivatives (bool yn) |
Tell if derivatives must be computed. More... | |
void | enableFirstOrderDerivatives (bool yn) |
bool | enableFirstOrderDerivatives () const |
void | enableSecondOrderDerivatives (bool yn) |
bool | enableSecondOrderDerivatives () const |
bool | isInitialized () const |
Static Public Member Functions | |
Generic tools to deal with likelihood arrays | |
static void | resetLikelihoodArray (VVVdouble &likelihoodArray) |
Set all conditional likelihoods to 1. More... | |
static void | displayLikelihoodArray (const VVVdouble &likelihoodArray) |
Print the likelihood array to terminal (debugging tool). More... | |
Protected Member Functions | |
virtual void | computeAllTransitionProbabilities () |
Fill the pxy_, dpxy_ and d2pxy_ arrays for all nodes. More... | |
virtual void | computeTransitionProbabilitiesForNode (const Node *node) |
Fill the pxy_, dpxy_ and d2pxy_ arrays for one node. More... | |
Protected Attributes | |
SubstitutionModel * | model_ |
ParameterList | brLenParameters_ |
std::map< int, VVVdouble > | pxy_ |
std::map< int, VVVdouble > | dpxy_ |
std::map< int, VVVdouble > | d2pxy_ |
std::vector< double > | rootFreqs_ |
std::vector< Node * > | nodes_ |
Pointer toward all nodes in the tree. More... | |
size_t | nbSites_ |
size_t | nbDistinctSites_ |
size_t | nbClasses_ |
size_t | nbStates_ |
size_t | nbNodes_ |
bool | verbose_ |
double | minimumBrLen_ |
double | maximumBrLen_ |
std::auto_ptr< Constraint > | brLenConstraint_ |
DiscreteDistribution * | rateDistribution_ |
const SiteContainer * | data_ |
TreeTemplate< Node > * | tree_ |
bool | computeFirstOrderDerivatives_ |
bool | computeSecondOrderDerivatives_ |
bool | initialized_ |
Private Member Functions | |
void | init_ (const Tree &tree, SubstitutionModel *model, DiscreteDistribution *rDist, bool checkRooted, bool verbose) throw (Exception) |
Method called by constructor. More... | |
Partial implementation for homogeneous model of the TreeLikelihood interface.
This class provides a pointer toward a single substitution model + several utilitary variables.
Definition at line 57 of file AbstractHomogeneousTreeLikelihood.h.
AbstractHomogeneousTreeLikelihood::AbstractHomogeneousTreeLikelihood | ( | const Tree & | tree, |
SubstitutionModel * | model, | ||
DiscreteDistribution * | rDist, | ||
bool | checkRooted = true , |
||
bool | verbose = true |
||
) | |||
throw | ( | Exception | |
) |
Definition at line 59 of file AbstractHomogeneousTreeLikelihood.cpp.
AbstractHomogeneousTreeLikelihood::AbstractHomogeneousTreeLikelihood | ( | const AbstractHomogeneousTreeLikelihood & | lik | ) |
Copy constructor.
This constructor is to be called by the derived class copy constructor.
Definition at line 89 of file AbstractHomogeneousTreeLikelihood.cpp.
References nodes_, and bpp::AbstractTreeLikelihood::tree_.
|
inlinevirtual |
Definition at line 143 of file AbstractHomogeneousTreeLikelihood.h.
|
virtual |
All parameters are stored in a parameter list. This function apply these parameters to the substitution model, to the rate distribution and to the branch lengths.
Reimplemented in bpp::RHomogeneousClockTreeLikelihood.
Definition at line 286 of file AbstractHomogeneousTreeLikelihood.cpp.
References bpp::SubstitutionModel::getFrequencies(), bpp::AbstractTreeLikelihood::initialized_, model_, nbNodes_, nodes_, bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_, and rootFreqs_.
Referenced by bpp::RHomogeneousMixedTreeLikelihood::fireParameterChanged(), bpp::DRHomogeneousMixedTreeLikelihood::fireParameterChanged(), bpp::DRHomogeneousTreeLikelihood::fireParameterChanged(), and bpp::RHomogeneousTreeLikelihood::fireParameterChanged().
|
pure virtualinherited |
|
protectedvirtual |
Fill the pxy_, dpxy_ and d2pxy_ arrays for all nodes.
Reimplemented in bpp::RHomogeneousMixedTreeLikelihood.
Definition at line 340 of file AbstractHomogeneousTreeLikelihood.cpp.
References computeTransitionProbabilitiesForNode(), bpp::SubstitutionModel::getFrequencies(), model_, nbNodes_, nodes_, and rootFreqs_.
Referenced by bpp::DRHomogeneousTreeLikelihood::fireParameterChanged(), and bpp::RHomogeneousTreeLikelihood::fireParameterChanged().
|
protectedvirtual |
Fill the pxy_, dpxy_ and d2pxy_ arrays for one node.
Reimplemented in bpp::RHomogeneousMixedTreeLikelihood.
Definition at line 353 of file AbstractHomogeneousTreeLikelihood.cpp.
References bpp::AbstractTreeLikelihood::computeFirstOrderDerivatives_, bpp::AbstractTreeLikelihood::computeSecondOrderDerivatives_, d2pxy_, dpxy_, bpp::SubstitutionModel::getd2Pij_dt2(), bpp::Node::getDistanceToFather(), bpp::SubstitutionModel::getdPij_dt(), bpp::Node::getId(), bpp::SubstitutionModel::getPij_t(), model_, nbClasses_, nbStates_, pxy_, and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
Referenced by computeAllTransitionProbabilities(), bpp::DRHomogeneousTreeLikelihood::fireParameterChanged(), and bpp::RHomogeneousTreeLikelihood::fireParameterChanged().
|
staticinherited |
Print the likelihood array to terminal (debugging tool).
likelihoodArray | the likelihood array. |
Definition at line 287 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
Referenced by bpp::DRHomogeneousTreeLikelihood::displayLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::displayLikelihood(), bpp::RHomogeneousTreeLikelihood::displayLikelihood(), and bpp::RNonHomogeneousTreeLikelihood::displayLikelihood().
|
inlinevirtualinherited |
Tell if derivatives must be computed.
This methods calls the enableFirstOrderDerivatives and enableSecondOrderDerivatives.
yn | Yes or no. |
Implements bpp::TreeLikelihood.
Definition at line 292 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::computeFirstOrderDerivatives_, and bpp::AbstractTreeLikelihood::computeSecondOrderDerivatives_.
Referenced by bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::AbstractDiscreteRatesAcrossSitesTreeLikelihood(), and bpp::DistanceEstimation::computeMatrix().
|
pure virtualinherited |
Tell if derivatives must be computed.
This methods calls the enableFirstOrderDerivatives and enableSecondOrderDerivatives.
yn | Yes or no. |
Implemented in bpp::AbstractTreeLikelihood.
|
inlineinherited |
Definition at line 293 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::computeFirstOrderDerivatives_.
|
inlineinherited |
Definition at line 295 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::computeFirstOrderDerivatives_.
|
inlineinherited |
Definition at line 294 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::computeFirstOrderDerivatives_, and bpp::AbstractTreeLikelihood::computeSecondOrderDerivatives_.
|
inlineinherited |
Definition at line 296 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::computeSecondOrderDerivatives_.
|
inlinevirtualinherited |
Get the alphabet associated to the dataset.
Implements bpp::TreeLikelihood.
Definition at line 285 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::data_.
|
pure virtualinherited |
Get the alphabet associated to the dataset.
Implemented in bpp::AbstractTreeLikelihood.
|
inlinevirtual |
Implements bpp::TreeLikelihood.
Definition at line 171 of file AbstractHomogeneousTreeLikelihood.h.
References bpp::SubstitutionModel::getAlphabetStateAsChar(), and model_.
|
inlinevirtual |
Implements bpp::TreeLikelihood.
Definition at line 169 of file AbstractHomogeneousTreeLikelihood.h.
References bpp::SubstitutionModel::getAlphabetStateAsInt(), and model_.
|
inlinevirtual |
Implements bpp::TreeLikelihood.
Definition at line 167 of file AbstractHomogeneousTreeLikelihood.h.
References bpp::SubstitutionModel::getAlphabetStates(), and model_.
|
virtual |
Get the branch lengths parameters.
Implements bpp::TreeLikelihood.
Definition at line 250 of file AbstractHomogeneousTreeLikelihood.cpp.
References brLenParameters_, and bpp::AbstractTreeLikelihood::initialized_.
|
pure virtualinherited |
Get the dataset for which the likelihood must be evaluated.
Implemented in bpp::AbstractTreeLikelihood.
|
inlinevirtualinherited |
Get the dataset for which the likelihood must be evaluated.
Implements bpp::TreeLikelihood.
Definition at line 284 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::data_.
Referenced by bpp::RNonHomogeneousMixedTreeLikelihood::init().
|
virtualinherited |
All derivable parameters.
Usually, this contains all branch lengths parameters.
Implements bpp::TreeLikelihood.
Reimplemented in bpp::RHomogeneousClockTreeLikelihood.
Definition at line 73 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
|
pure virtualinherited |
All derivable parameters.
Usually, this contains all branch lengths parameters.
Implemented in bpp::RHomogeneousClockTreeLikelihood, and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.
|
pure virtualinherited |
Get the likelihood for the whole dataset.
Implemented in bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, and bpp::DRHomogeneousMixedTreeLikelihood.
|
pure virtualinherited |
Implemented in bpp::RHomogeneousTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, and bpp::DRTreeLikelihood.
|
pure virtualinherited |
Implemented in bpp::RHomogeneousTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, and bpp::DRTreeLikelihood.
|
pure virtualinherited |
Get the likelihood for a site.
site | The site index to analyse. |
Implemented in bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, and bpp::DRHomogeneousMixedTreeLikelihood.
Referenced by bpp::AbstractTreeLikelihood::getLikelihoodForEachSite().
|
pure virtualinherited |
Get the likelihood for a site knowing its rate class.
site | The site index. |
rateClass | The rate class index. |
Implemented in bpp::RNonHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, bpp::DRHomogeneousMixedTreeLikelihood, and bpp::RHomogeneousMixedTreeLikelihood.
|
pure virtualinherited |
Get the likelihood for a site knowing its rate class and its ancestral state.
site | The site index. |
rateClass | The rate class index. |
state | The ancestral state. |
Implemented in bpp::RNonHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, bpp::DRHomogeneousMixedTreeLikelihood, and bpp::RHomogeneousMixedTreeLikelihood.
|
virtualinherited |
Get the likelihood for a site and for a state.
site | The site index to analyse. |
state | The state to consider. |
Implements bpp::TreeLikelihood.
Definition at line 111 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
|
pure virtualinherited |
Get the likelihood for a site and for a state.
site | The site index to analyse. |
state | The state to consider. |
Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.
Referenced by bpp::AbstractTreeLikelihood::getLikelihoodForEachSiteForEachState().
|
pure virtualinherited |
Get the likelihood for each site.
Implemented in bpp::AbstractTreeLikelihood.
|
virtualinherited |
Get the likelihood for each site.
Implements bpp::TreeLikelihood.
Definition at line 46 of file AbstractTreeLikelihood.cpp.
References bpp::TreeLikelihood::getLikelihoodForASite(), and bpp::AbstractTreeLikelihood::getNumberOfSites().
|
virtualinherited |
Get the likelihood for each site and each rate class.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihood.
Definition at line 93 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
|
virtualinherited |
Get the likelihood for each site and each rate class and each state.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihood.
Definition at line 156 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
|
pure virtualinherited |
Get the likelihood for each site and for each state.
Implemented in bpp::AbstractTreeLikelihood.
|
virtualinherited |
Get the likelihood for each site and for each state.
Implements bpp::TreeLikelihood.
Definition at line 64 of file AbstractTreeLikelihood.cpp.
References bpp::TreeLikelihood::getLikelihoodForASiteForAState(), bpp::AbstractTreeLikelihood::getNumberOfSites(), and bpp::TreeLikelihood::getNumberOfStates().
|
pure virtualinherited |
Get the logarithm of the likelihood for the whole dataset.
Implemented in bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, and bpp::DRHomogeneousMixedTreeLikelihood.
|
pure virtualinherited |
Get the logarithm of the likelihood for a site.
site | The site index to analyse. |
Implemented in bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, and bpp::DRHomogeneousMixedTreeLikelihood.
Referenced by bpp::AbstractTreeLikelihood::getLogLikelihoodForEachSite().
|
pure virtualinherited |
Get the logarithm of the likelihood for a site knowing its rate class.
site | The site index. |
rateClass | The rate class index. |
Implemented in bpp::RNonHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, bpp::DRHomogeneousMixedTreeLikelihood, and bpp::RHomogeneousMixedTreeLikelihood.
|
pure virtualinherited |
Get the logarithm of the likelihood for a site knowing its rate class and its ancestral state.
site | The site index. |
rateClass | The rate class index. |
state | The ancestral state. |
Implemented in bpp::RNonHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, bpp::DRHomogeneousMixedTreeLikelihood, and bpp::RHomogeneousMixedTreeLikelihood.
|
virtualinherited |
Get the logarithm of the likelihood for a site and for a state.
site | The site index to analyse. |
state | The state to consider. |
Implements bpp::TreeLikelihood.
Definition at line 124 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
|
pure virtualinherited |
Get the logarithm of the likelihood for a site and for a state.
site | The site index to analyse. |
state | The state to consider. |
Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.
Referenced by bpp::AbstractTreeLikelihood::getLogLikelihoodForEachSiteForEachState().
|
pure virtualinherited |
Get the logarithm of the likelihood for each site.
Implemented in bpp::AbstractTreeLikelihood.
|
virtualinherited |
Get the logarithm of the likelihood for each site.
Implements bpp::TreeLikelihood.
Definition at line 55 of file AbstractTreeLikelihood.cpp.
References bpp::TreeLikelihood::getLogLikelihoodForASite(), and bpp::AbstractTreeLikelihood::getNumberOfSites().
|
virtualinherited |
Get the logarithm of the likelihood for each site and each rate class.
V[i][j] =
likelihood of site i and rate class j. Implements bpp::DiscreteRatesAcrossSitesTreeLikelihood.
Definition at line 138 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
|
virtualinherited |
Get the logarithm of the likelihood for each site and each rate class and each state.
V[i][j][k} =
likelihood of site i and rate class j and state k. Implements bpp::DiscreteRatesAcrossSitesTreeLikelihood.
Definition at line 179 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
|
pure virtualinherited |
Get the logarithm of the likelihood for each site and for each state.
Implemented in bpp::AbstractTreeLikelihood.
|
virtualinherited |
Get the logarithm of the likelihood for each site and for each state.
Implements bpp::TreeLikelihood.
Definition at line 81 of file AbstractTreeLikelihood.cpp.
References bpp::TreeLikelihood::getLogLikelihoodForASiteForAState(), bpp::AbstractTreeLikelihood::getNumberOfSites(), and bpp::TreeLikelihood::getNumberOfStates().
|
inlinevirtual |
Definition at line 254 of file AbstractHomogeneousTreeLikelihood.h.
References maximumBrLen_.
|
inlinevirtual |
Definition at line 253 of file AbstractHomogeneousTreeLikelihood.h.
References minimumBrLen_.
|
inlinevirtual |
Implements bpp::TreeLikelihood.
Definition at line 188 of file AbstractHomogeneousTreeLikelihood.h.
References model_, and nbDistinctSites_.
|
inlinevirtual |
Implements bpp::TreeLikelihood.
Definition at line 193 of file AbstractHomogeneousTreeLikelihood.h.
References model_, and bpp::AbstractTreeLikelihood::tree_.
|
virtualinherited |
All non derivable parameters.
Usually, this contains all substitution model parameters and rate distribution.
Implements bpp::TreeLikelihood.
Reimplemented in bpp::RHomogeneousClockTreeLikelihood.
Definition at line 82 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
|
pure virtualinherited |
All non derivable parameters.
Usually, this contains all substitution model parameters and rate distribution.
Implemented in bpp::RHomogeneousClockTreeLikelihood, and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.
|
inlinevirtualinherited |
Get the number of classes.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihood.
Definition at line 108 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.h.
References bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
|
inlinevirtualinherited |
Get the number of sites in the dataset.
Implements bpp::TreeLikelihood.
Definition at line 290 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::data_.
Referenced by bpp::AbstractTreeLikelihood::getLikelihoodForEachSite(), bpp::AbstractTreeLikelihood::getLikelihoodForEachSiteForEachState(), bpp::AbstractTreeLikelihood::getLogLikelihoodForEachSite(), and bpp::AbstractTreeLikelihood::getLogLikelihoodForEachSiteForEachState().
|
pure virtualinherited |
Get the number of sites in the dataset.
Implemented in bpp::AbstractTreeLikelihood.
Referenced by bpp::SubstitutionMappingTools::getNormalizationsPerBranch().
|
inlinevirtual |
Implements bpp::TreeLikelihood.
Definition at line 165 of file AbstractHomogeneousTreeLikelihood.h.
References bpp::SubstitutionModel::getNumberOfStates(), and model_.
|
virtualinherited |
Get the posterior probability for each site of belonging to a particular rate class.
V[i][j] =
probablity for site i of belonging to rate class j. Implements bpp::DiscreteRatesAcrossSitesTreeLikelihood.
Definition at line 202 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
|
virtualinherited |
Get the posterior rate, i.e. averaged over all classes and weighted with posterior probabilities, for each site.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihood.
Definition at line 220 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
|
virtualinherited |
Get the posterior rate class (the one with maximum posterior probability) for each site.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihood.
Definition at line 239 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
|
inlinevirtualinherited |
Get the rate distribution used for the computation.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihood.
Definition at line 106 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.h.
References bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
|
inlinevirtualinherited |
Get the rate distribution used for the computation.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihood.
Definition at line 107 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.h.
References bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
|
inlinevirtual |
Get the parameters associated to the rate distirbution.
Reimplemented from bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.
Definition at line 179 of file AbstractHomogeneousTreeLikelihood.h.
References bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getRateDistributionParameters().
|
virtualinherited |
Get the posterior rate (the one with maximum posterior probability) for each site.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihood.
Definition at line 253 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
|
inlinevirtual |
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.
siteIndex | The index of the alignment position. |
Implements bpp::TreeLikelihood.
Definition at line 184 of file AbstractHomogeneousTreeLikelihood.h.
References bpp::SubstitutionModel::getFrequencies(), and model_.
|
pure virtualinherited |
Get the index (used for inner computations) of a given site (original alignment column).
site | An alignment position. |
Implemented in bpp::RHomogeneousTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, and bpp::DRHomogeneousTreeLikelihood.
|
inlinevirtual |
Implements bpp::HomogeneousTreeLikelihood.
Definition at line 207 of file AbstractHomogeneousTreeLikelihood.h.
References model_.
|
inlinevirtual |
Get the substitution model associated to a given node and alignment column.
nodeId | The id of the request node. |
siteIndex | The index of the alignment position. |
NodeNotFoundException | This exception may be thrown if the node is not found (depending on the implementation). |
Implements bpp::TreeLikelihood.
Definition at line 208 of file AbstractHomogeneousTreeLikelihood.h.
References model_.
|
inlinevirtual |
Implements bpp::HomogeneousTreeLikelihood.
Definition at line 210 of file AbstractHomogeneousTreeLikelihood.h.
References model_.
|
inlinevirtual |
Get the substitution model associated to a given node and alignment column.
nodeId | The id of the request node. |
siteIndex | The index of the alignment position. |
NodeNotFoundException | This exception may be thrown if the node is not found (depending on the implementation). |
Implements bpp::TreeLikelihood.
Definition at line 211 of file AbstractHomogeneousTreeLikelihood.h.
References model_.
|
virtual |
Get the parameters associated to substitution model(s).
Implements bpp::TreeLikelihood.
Definition at line 259 of file AbstractHomogeneousTreeLikelihood.cpp.
References bpp::AbstractTreeLikelihood::initialized_, and model_.
|
virtualinherited |
Retrieves all Pij(t) for a particular branch, defined by the upper node and site.
These intermediate results may be used by other methods.
nodeId | The node defining the branch of interest. |
siteIndex | The index of the alignment position. |
Implements bpp::TreeLikelihood.
Definition at line 311 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
|
pure virtualinherited |
Retrieves all Pij(t) for a particular branch, defined by the upper node and site.
These intermediate results may be used by other methods.
nodeId | The node defining the branch of interest. |
siteIndex | The index of the alignment position. |
Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.
|
inlinevirtual |
Retrieves all Pij(t) for a particular branch, defined by the upper node.
These intermediate results may be used by other methods.
nodeId | The node defining the branch of interest. |
siteIndex | The position in the alignment. |
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihood.
Definition at line 186 of file AbstractHomogeneousTreeLikelihood.h.
References pxy_.
|
inlinevirtualinherited |
Get the tree (topology and branch lengths).
Implements bpp::TreeLikelihood.
Definition at line 291 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::tree_.
Referenced by bpp::NNIHomogeneousTreeLikelihood::getTopology(), and bpp::RNonHomogeneousMixedTreeLikelihood::init().
|
pure virtualinherited |
Get the tree (topology and branch lengths).
Implemented in bpp::AbstractTreeLikelihood.
Referenced by bpp::GlobalClockTreeLikelihoodFunctionWrapper::fireParameterChanged(), bpp::SubstitutionMappingTools::getNormalizedCountsPerBranch(), bpp::DRTreeLikelihoodTools::getPosteriorProbabilitiesForEachStateForEachRate(), and bpp::GlobalClockTreeLikelihoodFunctionWrapper::initParameters_().
|
private |
Method called by constructor.
Definition at line 142 of file AbstractHomogeneousTreeLikelihood.cpp.
References bpp::TreeTools::checkIds().
|
virtual |
Reimplemented in bpp::RHomogeneousClockTreeLikelihood.
Definition at line 307 of file AbstractHomogeneousTreeLikelihood.cpp.
References brLenConstraint_, brLenParameters_, maximumBrLen_, minimumBrLen_, nbNodes_, and nodes_.
Referenced by initParameters(), setMaximumBranchLength(), and setMinimumBranchLength().
|
virtual |
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.
Exception | if something bad happened, for instance if no data are associated to the likelihood function. |
Implements bpp::TreeLikelihood.
Reimplemented in bpp::DRHomogeneousMixedTreeLikelihood, and bpp::RHomogeneousMixedTreeLikelihood.
Definition at line 237 of file AbstractHomogeneousTreeLikelihood.cpp.
References bpp::AbstractTreeLikelihood::data_, bpp::AbstractTreeLikelihood::initialized_, and initParameters().
Referenced by bpp::OptimizationTools::buildDistanceTree(), bpp::RHomogeneousMixedTreeLikelihood::initialize(), and bpp::DRHomogeneousMixedTreeLikelihood::initialize().
|
virtual |
This builds the parameters list from all parametrizable objects, i.e. substitution model, rate distribution and tree.
Definition at line 268 of file AbstractHomogeneousTreeLikelihood.cpp.
References brLenParameters_, initBranchLengthsParameters(), model_, and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
Referenced by initialize().
|
pure virtualinherited |
Implemented in bpp::AbstractTreeLikelihood.
|
inlinevirtualinherited |
Implements bpp::TreeLikelihood.
Definition at line 297 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::initialized_.
Referenced by bpp::DRHomogeneousTreeLikelihood::getValue(), bpp::DRNonHomogeneousTreeLikelihood::getValue(), bpp::RHomogeneousTreeLikelihood::getValue(), and bpp::RNonHomogeneousTreeLikelihood::getValue().
AbstractHomogeneousTreeLikelihood & AbstractHomogeneousTreeLikelihood::operator= | ( | const AbstractHomogeneousTreeLikelihood & | lik | ) |
Assignation operator.
This operator is to be called by the derived class operator.
Definition at line 115 of file AbstractHomogeneousTreeLikelihood.cpp.
References brLenConstraint_, brLenParameters_, d2pxy_, dpxy_, maximumBrLen_, minimumBrLen_, model_, nbClasses_, nbDistinctSites_, nbNodes_, nbSites_, nbStates_, nodes_, bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::operator=(), pxy_, rootFreqs_, bpp::AbstractTreeLikelihood::tree_, and verbose_.
Referenced by bpp::DRHomogeneousTreeLikelihood::operator=(), and bpp::RHomogeneousTreeLikelihood::operator=().
|
staticinherited |
Set all conditional likelihoods to 1.
likelihoodArray | the likelihood array. |
Definition at line 267 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
Referenced by bpp::DRHomogeneousTreeLikelihood::computeLikelihoodFromArrays(), bpp::DRNonHomogeneousTreeLikelihood::computeLikelihoodFromArrays(), bpp::DRHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::DRHomogeneousTreeLikelihood::computeSubtreeLikelihoodPrefix(), bpp::DRNonHomogeneousTreeLikelihood::computeSubtreeLikelihoodPrefix(), bpp::DRHomogeneousTreeLikelihood::resetLikelihoodArrays(), and bpp::DRNonHomogeneousTreeLikelihood::resetLikelihoodArrays().
|
pure virtualinherited |
Set the dataset for which the likelihood must be evaluated.
sites | The data set to use. |
Implemented in bpp::RNonHomogeneousMixedTreeLikelihood, bpp::NNIHomogeneousTreeLikelihood, bpp::TwoTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, bpp::DRHomogeneousMixedTreeLikelihood, and bpp::RHomogeneousMixedTreeLikelihood.
|
inlinevirtual |
Reimplemented in bpp::RHomogeneousMixedTreeLikelihood.
Definition at line 243 of file AbstractHomogeneousTreeLikelihood.h.
References brLenConstraint_, initBranchLengthsParameters(), maximumBrLen_, and minimumBrLen_.
|
inlinevirtual |
Reimplemented in bpp::RHomogeneousMixedTreeLikelihood.
Definition at line 233 of file AbstractHomogeneousTreeLikelihood.h.
References brLenConstraint_, initBranchLengthsParameters(), maximumBrLen_, and minimumBrLen_.
|
virtual |
Exception | If the model could not be set (for instance, because of a wrong alphabet type). |
Implements bpp::HomogeneousTreeLikelihood.
Definition at line 172 of file AbstractHomogeneousTreeLikelihood.cpp.
References bpp::Node::getId().
|
protected |
Definition at line 118 of file AbstractHomogeneousTreeLikelihood.h.
Referenced by initBranchLengthsParameters(), operator=(), setMaximumBranchLength(), and setMinimumBranchLength().
|
protected |
Definition at line 89 of file AbstractHomogeneousTreeLikelihood.h.
Referenced by getBranchLengthsParameters(), initBranchLengthsParameters(), initParameters(), and operator=().
|
protectedinherited |
Definition at line 227 of file AbstractTreeLikelihood.h.
Referenced by computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::AbstractNonHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::AbstractTreeLikelihood::enableDerivatives(), bpp::AbstractTreeLikelihood::enableFirstOrderDerivatives(), bpp::AbstractTreeLikelihood::enableSecondOrderDerivatives(), bpp::DRHomogeneousTreeLikelihood::fireParameterChanged(), bpp::DRNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::TwoTreeLikelihood::fireParameterChanged(), and bpp::AbstractTreeLikelihood::operator=().
|
protectedinherited |
Definition at line 228 of file AbstractTreeLikelihood.h.
Referenced by computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::AbstractNonHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::AbstractTreeLikelihood::enableDerivatives(), bpp::AbstractTreeLikelihood::enableSecondOrderDerivatives(), bpp::DRHomogeneousTreeLikelihood::fireParameterChanged(), bpp::DRNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::TwoTreeLikelihood::fireParameterChanged(), and bpp::AbstractTreeLikelihood::operator=().
|
mutableprotected |
Definition at line 95 of file AbstractHomogeneousTreeLikelihood.h.
Referenced by computeTransitionProbabilitiesForNode(), bpp::RHomogeneousTreeLikelihood::computeTreeD2Likelihood(), bpp::DRHomogeneousTreeLikelihood::computeTreeD2LikelihoodAtNode(), and operator=().
|
protectedinherited |
Definition at line 225 of file AbstractTreeLikelihood.h.
Referenced by bpp::AbstractTreeLikelihood::AbstractTreeLikelihood(), bpp::AbstractTreeLikelihood::getAlphabet(), bpp::AbstractTreeLikelihood::getData(), bpp::AbstractTreeLikelihood::getNumberOfSites(), initialize(), bpp::AbstractNonHomogeneousTreeLikelihood::initialize(), bpp::AbstractTreeLikelihood::operator=(), and bpp::AbstractTreeLikelihood::~AbstractTreeLikelihood().
|
mutableprotected |
Definition at line 93 of file AbstractHomogeneousTreeLikelihood.h.
Referenced by computeTransitionProbabilitiesForNode(), bpp::RHomogeneousTreeLikelihood::computeTreeDLikelihood(), bpp::DRHomogeneousTreeLikelihood::computeTreeDLikelihoodAtNode(), and operator=().
|
protectedinherited |
Definition at line 229 of file AbstractTreeLikelihood.h.
Referenced by applyParameters(), bpp::AbstractNonHomogeneousTreeLikelihood::applyParameters(), bpp::TwoTreeLikelihood::getBranchLengthsParameters(), getBranchLengthsParameters(), bpp::AbstractNonHomogeneousTreeLikelihood::getBranchLengthsParameters(), bpp::TwoTreeLikelihood::getSubstitutionModelParameters(), getSubstitutionModelParameters(), bpp::AbstractNonHomogeneousTreeLikelihood::getSubstitutionModelParameters(), bpp::TwoTreeLikelihood::initialize(), initialize(), bpp::AbstractNonHomogeneousTreeLikelihood::initialize(), bpp::AbstractTreeLikelihood::initialize(), bpp::AbstractTreeLikelihood::isInitialized(), and bpp::AbstractTreeLikelihood::operator=().
|
protected |
Definition at line 117 of file AbstractHomogeneousTreeLikelihood.h.
Referenced by getMaximumBranchLength(), initBranchLengthsParameters(), operator=(), setMaximumBranchLength(), and setMinimumBranchLength().
|
protected |
Definition at line 116 of file AbstractHomogeneousTreeLikelihood.h.
Referenced by getMinimumBranchLength(), initBranchLengthsParameters(), operator=(), setMaximumBranchLength(), and setMinimumBranchLength().
|
protected |
Definition at line 88 of file AbstractHomogeneousTreeLikelihood.h.
Referenced by applyParameters(), computeAllTransitionProbabilities(), computeTransitionProbabilitiesForNode(), bpp::RHomogeneousMixedTreeLikelihood::fireParameterChanged(), bpp::DRHomogeneousMixedTreeLikelihood::fireParameterChanged(), bpp::DRHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RHomogeneousTreeLikelihood::fireParameterChanged(), getAlphabetStateAsChar(), getAlphabetStateAsInt(), getAlphabetStates(), getNewBranchModelIterator(), getNewSiteModelIterator(), getNumberOfStates(), getRootFrequencies(), getSubstitutionModel(), getSubstitutionModelParameters(), initParameters(), and operator=().
|
protected |
Definition at line 108 of file AbstractHomogeneousTreeLikelihood.h.
Referenced by bpp::RHomogeneousTreeLikelihood::computeDownSubtreeD2Likelihood(), bpp::RHomogeneousTreeLikelihood::computeDownSubtreeDLikelihood(), bpp::DRHomogeneousMixedTreeLikelihood::computeLikelihoodAtNode_(), bpp::DRHomogeneousTreeLikelihood::computeLikelihoodAtNode_(), bpp::DRHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::RHomogeneousTreeLikelihood::computeSubtreeLikelihood(), bpp::DRHomogeneousTreeLikelihood::computeSubtreeLikelihoodPostfix(), bpp::DRHomogeneousTreeLikelihood::computeSubtreeLikelihoodPrefix(), computeTransitionProbabilitiesForNode(), bpp::RHomogeneousTreeLikelihood::computeTreeD2Likelihood(), bpp::DRHomogeneousTreeLikelihood::computeTreeD2LikelihoodAtNode(), bpp::RHomogeneousTreeLikelihood::computeTreeDLikelihood(), bpp::DRHomogeneousTreeLikelihood::computeTreeDLikelihoodAtNode(), bpp::RHomogeneousTreeLikelihood::getD2LikelihoodForASite(), bpp::RHomogeneousTreeLikelihood::getDLikelihoodForASite(), bpp::RHomogeneousTreeLikelihood::getLikelihoodForASite(), bpp::RHomogeneousTreeLikelihood::getLogLikelihoodForASite(), and operator=().
|
protected |
Definition at line 108 of file AbstractHomogeneousTreeLikelihood.h.
Referenced by bpp::DRHomogeneousMixedTreeLikelihood::computeLikelihoodAtNode_(), bpp::DRHomogeneousTreeLikelihood::computeLikelihoodAtNode_(), bpp::DRHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::DRHomogeneousTreeLikelihood::computeSubtreeLikelihoodPostfix(), bpp::DRHomogeneousTreeLikelihood::computeSubtreeLikelihoodPrefix(), bpp::DRHomogeneousTreeLikelihood::computeTreeD2LikelihoodAtNode(), bpp::DRHomogeneousTreeLikelihood::computeTreeDLikelihoodAtNode(), bpp::DRHomogeneousMixedTreeLikelihood::getLikelihood(), bpp::DRHomogeneousTreeLikelihood::getLikelihood(), bpp::DRHomogeneousMixedTreeLikelihood::getLogLikelihood(), bpp::DRHomogeneousTreeLikelihood::getLogLikelihood(), getNewBranchModelIterator(), and operator=().
|
protected |
Definition at line 108 of file AbstractHomogeneousTreeLikelihood.h.
Referenced by applyParameters(), computeAllTransitionProbabilities(), bpp::DRHomogeneousTreeLikelihood::computeTreeD2Likelihoods(), bpp::DRHomogeneousTreeLikelihood::computeTreeDLikelihoods(), initBranchLengthsParameters(), and operator=().
|
protected |
Definition at line 108 of file AbstractHomogeneousTreeLikelihood.h.
Referenced by bpp::RHomogeneousTreeLikelihood::getD2LogLikelihood(), bpp::RHomogeneousTreeLikelihood::getDLogLikelihood(), bpp::RHomogeneousTreeLikelihood::getLikelihood(), bpp::RHomogeneousTreeLikelihood::getLogLikelihood(), and operator=().
|
protected |
Definition at line 108 of file AbstractHomogeneousTreeLikelihood.h.
Referenced by bpp::RHomogeneousTreeLikelihood::computeDownSubtreeD2Likelihood(), bpp::RHomogeneousTreeLikelihood::computeDownSubtreeDLikelihood(), bpp::DRHomogeneousMixedTreeLikelihood::computeLikelihoodAtNode_(), bpp::DRHomogeneousTreeLikelihood::computeLikelihoodAtNode_(), bpp::DRHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::RHomogeneousTreeLikelihood::computeSubtreeLikelihood(), bpp::DRHomogeneousTreeLikelihood::computeSubtreeLikelihoodPostfix(), bpp::DRHomogeneousTreeLikelihood::computeSubtreeLikelihoodPrefix(), computeTransitionProbabilitiesForNode(), bpp::RHomogeneousTreeLikelihood::computeTreeD2Likelihood(), bpp::DRHomogeneousTreeLikelihood::computeTreeD2LikelihoodAtNode(), bpp::RHomogeneousTreeLikelihood::computeTreeDLikelihood(), bpp::DRHomogeneousTreeLikelihood::computeTreeDLikelihoodAtNode(), bpp::RHomogeneousTreeLikelihood::getD2LikelihoodForASiteForARateClass(), bpp::RHomogeneousTreeLikelihood::getDLikelihoodForASiteForARateClass(), bpp::RHomogeneousTreeLikelihood::getLikelihoodForASiteForARateClass(), bpp::RHomogeneousTreeLikelihood::getLogLikelihoodForASiteForARateClass(), and operator=().
|
protected |
Pointer toward all nodes in the tree.
The position in the array is the number used in the parameter name. This may be different from the node id, unless you used the resetNodeId method on the input tree.
Definition at line 105 of file AbstractHomogeneousTreeLikelihood.h.
Referenced by AbstractHomogeneousTreeLikelihood(), applyParameters(), computeAllTransitionProbabilities(), bpp::RHomogeneousTreeLikelihood::computeTreeD2Likelihood(), bpp::DRHomogeneousTreeLikelihood::computeTreeD2Likelihoods(), bpp::RHomogeneousTreeLikelihood::computeTreeDLikelihood(), bpp::DRHomogeneousTreeLikelihood::computeTreeDLikelihoods(), bpp::DRHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RHomogeneousTreeLikelihood::fireParameterChanged(), initBranchLengthsParameters(), and operator=().
|
mutableprotected |
Definition at line 91 of file AbstractHomogeneousTreeLikelihood.h.
Referenced by bpp::RHomogeneousTreeLikelihood::computeDownSubtreeD2Likelihood(), bpp::RHomogeneousTreeLikelihood::computeDownSubtreeDLikelihood(), bpp::DRHomogeneousTreeLikelihood::computeLikelihoodAtNode_(), bpp::DRHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::RHomogeneousTreeLikelihood::computeSubtreeLikelihood(), bpp::DRHomogeneousTreeLikelihood::computeSubtreeLikelihoodPostfix(), bpp::DRHomogeneousTreeLikelihood::computeSubtreeLikelihoodPrefix(), computeTransitionProbabilitiesForNode(), bpp::RHomogeneousTreeLikelihood::computeTreeD2Likelihood(), bpp::RHomogeneousTreeLikelihood::computeTreeDLikelihood(), getTransitionProbabilitiesPerRateClass(), and operator=().
|
protectedinherited |
Definition at line 61 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.h.
Referenced by applyParameters(), bpp::AbstractNonHomogeneousTreeLikelihood::applyParameters(), bpp::TwoTreeLikelihood::applyParameters(), bpp::DRHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeRootLikelihood(), computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::AbstractNonHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::TwoTreeLikelihood::computeTreeD2Likelihood(), bpp::DRHomogeneousTreeLikelihood::computeTreeD2LikelihoodAtNode(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeD2LikelihoodAtNode(), bpp::TwoTreeLikelihood::computeTreeDLikelihood(), bpp::DRHomogeneousTreeLikelihood::computeTreeDLikelihoodAtNode(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeDLikelihoodAtNode(), bpp::TwoTreeLikelihood::computeTreeLikelihood(), bpp::DRHomogeneousTreeLikelihood::fireParameterChanged(), bpp::DRNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::TwoTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousMixedTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousTreeLikelihood::getD2LikelihoodForASite(), bpp::RHomogeneousTreeLikelihood::getD2LikelihoodForASite(), bpp::RNonHomogeneousTreeLikelihood::getDLikelihoodForASite(), bpp::RHomogeneousTreeLikelihood::getDLikelihoodForASite(), bpp::RHomogeneousTreeLikelihood::getLikelihoodForASite(), bpp::RNonHomogeneousTreeLikelihood::getLikelihoodForASite(), bpp::RHomogeneousTreeLikelihood::getLogLikelihoodForASite(), bpp::RNonHomogeneousTreeLikelihood::getLogLikelihoodForASite(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getNumberOfClasses(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getRateDistribution(), bpp::RNonHomogeneousMixedTreeLikelihood::init(), initParameters(), bpp::AbstractNonHomogeneousTreeLikelihood::initParameters(), bpp::TwoTreeLikelihood::initParameters(), and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::operator=().
|
protected |
Definition at line 97 of file AbstractHomogeneousTreeLikelihood.h.
Referenced by applyParameters(), computeAllTransitionProbabilities(), bpp::DRHomogeneousTreeLikelihood::computeLikelihoodAtNode_(), bpp::DRHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::DRHomogeneousTreeLikelihood::computeSubtreeLikelihoodPrefix(), bpp::RHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RHomogeneousTreeLikelihood::getD2LikelihoodForASiteForARateClass(), bpp::RHomogeneousTreeLikelihood::getDLikelihoodForASiteForARateClass(), bpp::RHomogeneousTreeLikelihood::getLikelihoodForASiteForARateClass(), bpp::RHomogeneousTreeLikelihood::getLogLikelihoodForASiteForARateClass(), and operator=().
|
mutableprotectedinherited |
Definition at line 226 of file AbstractTreeLikelihood.h.
Referenced by AbstractHomogeneousTreeLikelihood(), bpp::AbstractNonHomogeneousTreeLikelihood::AbstractNonHomogeneousTreeLikelihood(), bpp::AbstractTreeLikelihood::AbstractTreeLikelihood(), bpp::DRHomogeneousTreeLikelihood::computeLikelihoodAtNode(), bpp::DRNonHomogeneousTreeLikelihood::computeLikelihoodAtNode(), bpp::DRHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::RNonHomogeneousTreeLikelihood::computeTreeD2Likelihood(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTreeD2Likelihood(), bpp::RNonHomogeneousTreeLikelihood::computeTreeDLikelihood(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTreeDLikelihood(), bpp::DRHomogeneousTreeLikelihood::computeTreeLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeLikelihood(), bpp::RNonHomogeneousTreeLikelihood::computeTreeLikelihood(), bpp::RHomogeneousTreeLikelihood::computeTreeLikelihood(), bpp::DRHomogeneousTreeLikelihood::DRHomogeneousTreeLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::DRNonHomogeneousTreeLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousMixedTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousTreeLikelihood::getD2LikelihoodForASiteForARateClass(), bpp::RHomogeneousTreeLikelihood::getD2LikelihoodForASiteForARateClass(), bpp::RNonHomogeneousTreeLikelihood::getDLikelihoodForASiteForARateClass(), bpp::RHomogeneousTreeLikelihood::getDLikelihoodForASiteForARateClass(), bpp::RHomogeneousTreeLikelihood::getLikelihoodForASiteForARateClass(), bpp::RNonHomogeneousTreeLikelihood::getLikelihoodForASiteForARateClass(), bpp::RHomogeneousTreeLikelihood::getLikelihoodForASiteForARateClassForAState(), bpp::RNonHomogeneousTreeLikelihood::getLikelihoodForASiteForARateClassForAState(), bpp::RHomogeneousTreeLikelihood::getLogLikelihoodForASiteForARateClass(), bpp::RNonHomogeneousTreeLikelihood::getLogLikelihoodForASiteForARateClass(), bpp::RHomogeneousTreeLikelihood::getLogLikelihoodForASiteForARateClassForAState(), bpp::RNonHomogeneousTreeLikelihood::getLogLikelihoodForASiteForARateClassForAState(), getNewSiteModelIterator(), bpp::AbstractTreeLikelihood::getTree(), bpp::DRHomogeneousTreeLikelihood::operator=(), bpp::DRNonHomogeneousTreeLikelihood::operator=(), operator=(), bpp::RHomogeneousTreeLikelihood::operator=(), bpp::RNonHomogeneousTreeLikelihood::operator=(), bpp::AbstractNonHomogeneousTreeLikelihood::operator=(), bpp::AbstractTreeLikelihood::operator=(), bpp::RHomogeneousTreeLikelihood::RHomogeneousTreeLikelihood(), bpp::RNonHomogeneousTreeLikelihood::RNonHomogeneousTreeLikelihood(), and bpp::AbstractTreeLikelihood::~AbstractTreeLikelihood().
|
protected |
Definition at line 114 of file AbstractHomogeneousTreeLikelihood.h.
Referenced by operator=().