bpp-phyl3
3.0.0
|
Partial implementation for branch non-homogeneous models of the TreeLikelihood interface. More...
#include <Bpp/Phyl/Legacy/Likelihood/AbstractNonHomogeneousTreeLikelihood.h>
Classes | |
class | ConstNonHomogeneousSiteModelIterator |
Public Member Functions | |
AbstractNonHomogeneousTreeLikelihood (const Tree &tree, std::shared_ptr< SubstitutionModelSet > modelSet, std::shared_ptr< DiscreteDistributionInterface > rDist, bool verbose=true, bool reparametrizeRoot=true) | |
AbstractNonHomogeneousTreeLikelihood (const AbstractNonHomogeneousTreeLikelihood &lik) | |
Copy constructor. More... | |
AbstractNonHomogeneousTreeLikelihood & | operator= (const AbstractNonHomogeneousTreeLikelihood &lik) |
Assignation operator. More... | |
virtual | ~AbstractNonHomogeneousTreeLikelihood () |
virtual void | initParameters () |
This builds the parameters list from all parametrizable objects, i.e. substitution model, rate distribution and tree. More... | |
virtual void | applyParameters () |
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 (bool verbose=true) |
virtual void | setMinimumBranchLength (double minimum) |
virtual void | setMaximumBranchLength (double maximum) |
virtual double | getMinimumBranchLength () const |
virtual double | getMaximumBranchLength () const |
NonHomogeneousTreeLikelihood * | clone () const override=0 |
std::shared_ptr< const TransitionModelInterface > | getModelForSite (int nodeId, size_t siteIndex) const override |
Get the substitution model associated to a given node and alignment column. More... | |
std::shared_ptr< TransitionModelInterface > | getModelForSite (int nodeId, size_t siteIndex) override |
Get the substitution model associated to a given node and alignment column. More... | |
virtual void | setData (const AlignmentDataInterface &sites)=0 |
Set the dataset for which the likelihood must be evaluated. More... | |
virtual const AlignmentDataInterface & | data () const =0 |
Get the dataset for which the likelihood must be evaluated. More... | |
virtual bool | isInitialized () const =0 |
virtual bool | hasLikelihoodData () const =0 |
virtual TreeLikelihoodData & | likelihoodData ()=0 |
virtual const TreeLikelihoodData & | likelihoodData () 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 | getLikelihoodPerSite () const =0 |
Get the likelihood for each site. More... | |
virtual Vdouble | getLogLikelihoodPerSite () const =0 |
Get the logarithm of the likelihood for each site. More... | |
virtual VVdouble | getLikelihoodPerSitePerState () const =0 |
Get the likelihood for each site and for each state. More... | |
virtual VVdouble | getLogLikelihoodPerSitePerState () 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 & | tree () 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 std::shared_ptr< 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 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 ¶meters) |
virtual double | d2f (const std::string &variable1, const std::string &variable2, const ParameterList ¶meters) |
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 ¶meters) |
virtual void | setParameters (const ParameterList ¶meters)=0 |
virtual double | getValue () const=0 |
virtual double | f (const ParameterList ¶meters) |
virtual bool | hasParameter (const std::string &name) const=0 |
virtual const ParameterList & | getParameters () const=0 |
virtual const Parameter & | parameter (const std::string &name) const=0 |
virtual double | getParameterValue (const std::string &name) const=0 |
virtual void | setAllParametersValues (const ParameterList ¶meters)=0 |
virtual void | setParameterValue (const std::string &name, double value)=0 |
virtual void | setParametersValues (const ParameterList ¶meters)=0 |
virtual bool | matchParametersValues (const ParameterList ¶meters)=0 |
virtual void | removeConstraint (const std::string &name)=0 |
virtual void | setConstraint (const std::string &name, std::shared_ptr< ConstraintInterface > constraint)=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 |
virtual Clonable * | clone () const=0 |
bool | hasParameter (const std::string &name) const override |
const ParameterList & | getParameters () const override |
const Parameter & | parameter (const std::string &name) const override |
double | getParameterValue (const std::string &name) const override |
void | setAllParametersValues (const ParameterList ¶meters) override |
void | setParameterValue (const std::string &name, double value) override |
void | setParametersValues (const ParameterList ¶meters) override |
bool | matchParametersValues (const ParameterList ¶meters) override |
void | removeConstraint (const std::string &name) override |
void | setConstraint (const std::string &name, std::shared_ptr< ConstraintInterface > constraint) override |
size_t | getNumberOfParameters () const override |
void | setNamespace (const std::string &prefix) override |
std::string | getNamespace () const override |
std::string | getParameterNameWithoutNamespace (const std::string &name) const override |
const std::shared_ptr< Parameter > & | getParameter (const std::string &name) const |
virtual void | fireParameterChanged (const ParameterList ¶meters) |
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 override |
const std::vector< int > & | getAlphabetStates () const override |
int | getAlphabetStateAsInt (size_t i) const override |
std::string | getAlphabetStateAsChar (size_t i) const override |
void | initialize () override |
Init the likelihood object. More... | |
ParameterList | getBranchLengthsParameters () const override |
Get the branch lengths parameters. More... | |
ParameterList | getSubstitutionModelParameters () const override |
Get the parameters associated to substitution model(s). More... | |
ParameterList | getRateDistributionParameters () const override |
Get the parameters associated to the rate distribution. More... | |
std::shared_ptr< const TransitionModelInterface > | getModelForNode (int nodeId) const override |
Get the model associated to a given node. More... | |
std::shared_ptr< TransitionModelInterface > | getModelForNode (int nodeId) override |
Get the substitution model associated to a given node. More... | |
const std::vector< double > & | getRootFrequencies (size_t siteIndex) const override |
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 override |
Retrieves all Pij(t) for a particular branch, defined by the upper node. More... | |
ConstBranchModelIterator * | getNewBranchModelIterator (int nodeId) const override |
ConstSiteModelIterator * | getNewSiteModelIterator (size_t siteIndex) const override |
The NonHomogeneousTreeLikelihood interface. | |
Other methods are implemented in the AbstractTreeLikelihood class. | |
std::shared_ptr< const SubstitutionModelSet > | getSubstitutionModelSet () const override |
const SubstitutionModelSet & | substitutionModelSet () const override |
std::shared_ptr< SubstitutionModelSet > | getSubstitutionModelSet () override |
SubstitutionModelSet & | substitutionModelSet () override |
void | setSubstitutionModelSet (std::shared_ptr< SubstitutionModelSet > modelSet) override |
ParameterList | getRootFrequenciesParameters () const override |
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 |
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: | |
std::shared_ptr< const DiscreteDistributionInterface > | getRateDistribution () const |
Get the rate distribution used for the computation. More... | |
std::shared_ptr< DiscreteDistributionInterface > | getRateDistribution () |
Get the rate distribution used for the computation. More... | |
const DiscreteDistributionInterface & | rateDistribution () const |
Get the rate distribution used for the computation. More... | |
DiscreteDistributionInterface & | rateDistribution () |
Get the rate distribution used for the computation. More... | |
size_t | getNumberOfClasses () const |
Get the number of classes. More... | |
VVdouble | getLikelihoodPerSitePerRateClass () const |
Get the likelihood for each site and each rate class. More... | |
VVdouble | getLogLikelihoodPerSitePerRateClass () const |
Get the logarithm of the likelihood for each site and each rate class. More... | |
VVVdouble | getLikelihoodPerSitePerRateClassPerState () const |
Get the likelihood for each site and each rate class and each state. More... | |
VVVdouble | getLogLikelihoodPerSitePerRateClassPerState () const |
Get the logarithm of the likelihood for each site and each rate class and each state. More... | |
VVdouble | getPosteriorProbabilitiesPerRate () const |
Get the posterior probability for each site of belonging to a particular rate class. More... | |
Vdouble | getRateWithMaxPostProbPerSite () const |
Get the posterior rate (the one with maximum posterior probability) for each site. More... | |
std::vector< size_t > | getRateClassWithMaxPostProbPerSite () const |
Get the posterior rate class (the one with maximum posterior probability) for each site. More... | |
Vdouble | getPosteriorRatePerSite () const |
Get the posterior rate, i.e. averaged over all classes and weighted with posterior probabilities, for each site. More... | |
The TreeLikelihood interface. | |
bool | hasLikelihoodData () const |
const AlignmentDataInterface & | data () const |
Get the dataset for which the likelihood must be evaluated. More... | |
std::shared_ptr< const Alphabet > | getAlphabet () const |
Get the alphabet associated to the dataset. More... | |
Vdouble | getLikelihoodPerSite () const |
Get the likelihood for each site. More... | |
Vdouble | getLogLikelihoodPerSite () const |
Get the logarithm of the likelihood for each site. More... | |
VVdouble | getLikelihoodPerSitePerState () const |
Get the likelihood for each site and for each state. More... | |
VVdouble | getLogLikelihoodPerSitePerState () 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 & | tree () 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... | |
virtual ParameterList & | getParameters_ ()=0 |
ParameterList & | getParameters_ () override |
const std::shared_ptr< Parameter > & | getParameter (size_t i) const |
std::shared_ptr< Parameter > & | getParameter (size_t i) |
virtual void | addParameter_ (Parameter *parameter) |
virtual void | addParameters_ (const ParameterList ¶meters) |
virtual void | shareParameter_ (const std::shared_ptr< Parameter > ¶meter) |
virtual void | shareParameters_ (const ParameterList ¶meters) |
virtual void | includeParameters_ (const ParameterList ¶meters) |
virtual void | deleteParameter_ (size_t index) |
virtual void | deleteParameter_ (std::string &name) |
virtual void | deleteParameters_ (const std::vector< std::string > &names) |
void | resetParameters_ () |
Parameter & | getParameter_ (const std::string &name) |
Parameter & | getParameter_ (size_t index) |
const Parameter & | getParameter_ (size_t index) const |
Parameter & | getParameterWithNamespace_ (const std::string &name) |
const Parameter & | getParameterWithNamespace_ (const std::string &name) const |
Protected Attributes | |
std::shared_ptr< SubstitutionModelSet > | modelSet_ |
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... | |
std::map< int, const Node * > | idToNode_ |
An index linking nodes to their id, for faster access than the getNode() method. More... | |
size_t | nbSites_ |
size_t | nbDistinctSites_ |
size_t | nbClasses_ |
size_t | nbStates_ |
size_t | nbNodes_ |
bool | verbose_ |
double | minimumBrLen_ |
double | maximumBrLen_ |
std::shared_ptr< ConstraintInterface > | brLenConstraint_ |
bool | reparametrizeRoot_ |
int | root1_ |
int | root2_ |
std::shared_ptr< DiscreteDistributionInterface > | rateDistribution_ |
std::unique_ptr< const AlignmentDataInterface > | data_ |
std::shared_ptr< TreeTemplate< Node > > | tree_ |
bool | computeFirstOrderDerivatives_ |
bool | computeSecondOrderDerivatives_ |
bool | initialized_ |
Private Member Functions | |
void | init_ (const Tree &tree, std::shared_ptr< SubstitutionModelSet > modelSet, std::shared_ptr< DiscreteDistributionInterface > rDist, bool verbose) |
Method called by constructor. More... | |
Private Attributes | |
ParameterList | parameters_ |
std::string | prefix_ |
Partial implementation for branch non-homogeneous models of the TreeLikelihood interface.
This class provides a pointer toward a single substitution model + several utilitary variables.
Definition at line 22 of file AbstractNonHomogeneousTreeLikelihood.h.
AbstractNonHomogeneousTreeLikelihood::AbstractNonHomogeneousTreeLikelihood | ( | const Tree & | tree, |
std::shared_ptr< SubstitutionModelSet > | modelSet, | ||
std::shared_ptr< DiscreteDistributionInterface > | rDist, | ||
bool | verbose = true , |
||
bool | reparametrizeRoot = true |
||
) |
Definition at line 24 of file AbstractNonHomogeneousTreeLikelihood.cpp.
References init_(), and bpp::AbstractTreeLikelihood::tree().
AbstractNonHomogeneousTreeLikelihood::AbstractNonHomogeneousTreeLikelihood | ( | const AbstractNonHomogeneousTreeLikelihood & | lik | ) |
Copy constructor.
This constructor is to be called by the derived class copy constructor.
Definition at line 57 of file AbstractNonHomogeneousTreeLikelihood.cpp.
References bpp::Node::getId(), idToNode_, nodes_, and bpp::AbstractTreeLikelihood::tree_.
|
inlinevirtual |
Definition at line 119 of file AbstractNonHomogeneousTreeLikelihood.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.
Definition at line 285 of file AbstractNonHomogeneousTreeLikelihood.cpp.
References bpp::AbstractParametrizable::getParameters(), bpp::Parameter::getValue(), bpp::AbstractTreeLikelihood::initialized_, modelSet_, nbNodes_, nodes_, bpp::AbstractParametrizable::parameter(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_, reparametrizeRoot_, root1_, root2_, and bpp::TextTools::toString().
Referenced by bpp::DRNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousMixedTreeLikelihood::fireParameterChanged(), and bpp::RNonHomogeneousTreeLikelihood::fireParameterChanged().
|
overridepure virtualinherited |
Implements bpp::TreeLikelihoodInterface.
Implemented in bpp::RNonHomogeneousTreeLikelihood, bpp::RNonHomogeneousMixedTreeLikelihood, and bpp::DRNonHomogeneousTreeLikelihood.
|
protectedvirtual |
Fill the pxy_, dpxy_ and d2pxy_ arrays for all nodes.
Definition at line 370 of file AbstractNonHomogeneousTreeLikelihood.cpp.
References computeTransitionProbabilitiesForNode(), modelSet_, nbNodes_, nodes_, and rootFreqs_.
Referenced by bpp::DRNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousMixedTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousTreeLikelihood::fireParameterChanged(), initialize(), and setSubstitutionModelSet().
|
protectedvirtual |
Fill the pxy_, dpxy_ and d2pxy_ arrays for one node.
Reimplemented in bpp::RNonHomogeneousMixedTreeLikelihood.
Definition at line 383 of file AbstractNonHomogeneousTreeLikelihood.cpp.
References bpp::AbstractTreeLikelihood::computeFirstOrderDerivatives_, bpp::AbstractTreeLikelihood::computeSecondOrderDerivatives_, d2pxy_, dpxy_, bpp::Node::getDistanceToFather(), bpp::Node::getId(), modelSet_, nbClasses_, nbStates_, pxy_, and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
Referenced by computeAllTransitionProbabilities(), bpp::DRNonHomogeneousTreeLikelihood::fireParameterChanged(), and bpp::RNonHomogeneousTreeLikelihood::fireParameterChanged().
|
inlinevirtualinherited |
Get the dataset for which the likelihood must be evaluated.
Implements bpp::TreeLikelihoodInterface.
Definition at line 262 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::data_.
Referenced by bpp::DRHomogeneousMixedTreeLikelihood::DRHomogeneousMixedTreeLikelihood(), bpp::DRHomogeneousTreeLikelihood::DRHomogeneousTreeLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::DRNonHomogeneousTreeLikelihood(), bpp::RNonHomogeneousMixedTreeLikelihood::init(), bpp::RHomogeneousMixedTreeLikelihood::RHomogeneousMixedTreeLikelihood(), bpp::RHomogeneousTreeLikelihood::RHomogeneousTreeLikelihood(), bpp::RNonHomogeneousMixedTreeLikelihood::RNonHomogeneousMixedTreeLikelihood(), and bpp::RNonHomogeneousTreeLikelihood::RNonHomogeneousTreeLikelihood().
|
pure virtualinherited |
Get the dataset for which the likelihood must be evaluated.
Implemented in bpp::AbstractTreeLikelihood.
|
staticinherited |
Print the likelihood array to terminal (debugging tool).
likelihoodArray | the likelihood array. |
Definition at line 251 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::TreeLikelihoodInterface.
Definition at line 270 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::computeFirstOrderDerivatives_, and bpp::AbstractTreeLikelihood::computeSecondOrderDerivatives_.
Referenced by bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::AbstractDiscreteRatesAcrossSitesTreeLikelihood().
|
pure virtualinherited |
Tell if derivatives must be computed.
This methods calls the enableFirstOrderDerivatives and enableSecondOrderDerivatives.
yn | Yes or no. |
Implemented in bpp::AbstractTreeLikelihood.
|
inlinevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 273 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::computeFirstOrderDerivatives_.
|
inlinevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 271 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::computeFirstOrderDerivatives_.
|
inlinevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 274 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::computeSecondOrderDerivatives_.
|
inlinevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 272 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::computeFirstOrderDerivatives_, and bpp::AbstractTreeLikelihood::computeSecondOrderDerivatives_.
|
inlinevirtualinherited |
Get the alphabet associated to the dataset.
Implements bpp::TreeLikelihoodInterface.
Definition at line 263 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::data_.
|
pure virtualinherited |
Get the alphabet associated to the dataset.
Implemented in bpp::AbstractTreeLikelihood.
|
inlineoverridevirtual |
Implements bpp::TreeLikelihoodInterface.
Definition at line 145 of file AbstractNonHomogeneousTreeLikelihood.h.
References modelSet_.
|
inlineoverridevirtual |
Implements bpp::TreeLikelihoodInterface.
Definition at line 143 of file AbstractNonHomogeneousTreeLikelihood.h.
References modelSet_.
|
inlineoverridevirtual |
Implements bpp::TreeLikelihoodInterface.
Definition at line 141 of file AbstractNonHomogeneousTreeLikelihood.h.
References modelSet_.
|
overridevirtual |
Get the branch lengths parameters.
Implements bpp::TreeLikelihoodInterface.
Definition at line 249 of file AbstractNonHomogeneousTreeLikelihood.cpp.
References brLenParameters_, bpp::ParameterList::getCommonParametersWith(), bpp::AbstractParametrizable::getParameters(), and bpp::AbstractTreeLikelihood::initialized_.
|
virtualinherited |
All derivable parameters.
Usually, this contains all branch lengths parameters.
Implements bpp::TreeLikelihoodInterface.
Definition at line 37 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
References bpp::TreeLikelihoodInterface::getBranchLengthsParameters(), and bpp::AbstractTreeLikelihood::initialized_.
|
pure virtualinherited |
All derivable parameters.
Usually, this contains all branch lengths parameters.
Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.
|
pure virtualinherited |
Get the likelihood for the whole dataset.
Implemented in bpp::DRHomogeneousTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, and bpp::DRHomogeneousMixedTreeLikelihood.
|
pure virtualinherited |
Get the likelihood for a site.
site | The site index to analyse. |
Implemented in bpp::DRHomogeneousTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, and bpp::DRHomogeneousMixedTreeLikelihood.
Referenced by bpp::AbstractTreeLikelihood::getLikelihoodPerSite().
|
pure virtualinherited |
Get the likelihood for a site knowing its rate class.
site | The site index. |
rateClass | The rate class index. |
Implemented in bpp::DRHomogeneousTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::RHomogeneousMixedTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, and bpp::DRHomogeneousMixedTreeLikelihood.
Referenced by bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLikelihoodPerSitePerRateClass().
|
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::DRHomogeneousTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::RHomogeneousMixedTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, and bpp::DRHomogeneousMixedTreeLikelihood.
Referenced by bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLikelihoodForASiteForAState(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLikelihoodPerSitePerRateClassPerState(), and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLogLikelihoodForASiteForAState().
|
virtualinherited |
Get the likelihood for a site and for a state.
site | The site index to analyse. |
state | The state to consider. |
Implements bpp::TreeLikelihoodInterface.
Definition at line 75 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
References bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface::getLikelihoodForASiteForARateClassForAState(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getNumberOfClasses(), and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
|
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::getLikelihoodPerSitePerState().
|
virtualinherited |
Get the likelihood for each site.
Implements bpp::TreeLikelihoodInterface.
Definition at line 11 of file AbstractTreeLikelihood.cpp.
References bpp::TreeLikelihoodInterface::getLikelihoodForASite(), and bpp::AbstractTreeLikelihood::getNumberOfSites().
Referenced by bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getPosteriorProbabilitiesPerRate(), and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getPosteriorRatePerSite().
|
pure virtualinherited |
Get the likelihood for each site.
Implemented in bpp::AbstractTreeLikelihood.
|
virtualinherited |
Get the likelihood for each site and each rate class.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface.
Definition at line 57 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
References bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface::getLikelihoodForASiteForARateClass(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getNumberOfClasses(), and bpp::AbstractTreeLikelihood::getNumberOfSites().
Referenced by bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getPosteriorProbabilitiesPerRate(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getPosteriorRatePerSite(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getRateClassWithMaxPostProbPerSite(), and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getRateWithMaxPostProbPerSite().
|
virtualinherited |
Get the likelihood for each site and each rate class and each state.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface.
Definition at line 120 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
References bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface::getLikelihoodForASiteForARateClassForAState(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getNumberOfClasses(), bpp::AbstractTreeLikelihood::getNumberOfSites(), and bpp::TreeLikelihoodInterface::getNumberOfStates().
|
virtualinherited |
Get the likelihood for each site and for each state.
Implements bpp::TreeLikelihoodInterface.
Definition at line 35 of file AbstractTreeLikelihood.cpp.
References bpp::TreeLikelihoodInterface::getLikelihoodForASiteForAState(), bpp::AbstractTreeLikelihood::getNumberOfSites(), and bpp::TreeLikelihoodInterface::getNumberOfStates().
|
pure virtualinherited |
Get the likelihood for each site and for each state.
Implemented in bpp::AbstractTreeLikelihood.
|
pure virtualinherited |
Get the logarithm of the likelihood for the whole dataset.
Implemented in bpp::DRHomogeneousTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, and bpp::DRHomogeneousMixedTreeLikelihood.
|
pure virtualinherited |
Get the logarithm of the likelihood for a site.
site | The site index to analyse. |
Implemented in bpp::DRHomogeneousTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, and bpp::DRHomogeneousMixedTreeLikelihood.
Referenced by bpp::AbstractTreeLikelihood::getLogLikelihoodPerSite().
|
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::DRHomogeneousTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::RHomogeneousMixedTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, and bpp::DRHomogeneousMixedTreeLikelihood.
Referenced by bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLogLikelihoodPerSitePerRateClass().
|
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::DRHomogeneousTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::RHomogeneousMixedTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, and bpp::DRHomogeneousMixedTreeLikelihood.
Referenced by bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLogLikelihoodPerSitePerRateClassPerState().
|
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::TreeLikelihoodInterface.
Definition at line 88 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
References bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface::getLikelihoodForASiteForARateClassForAState(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getNumberOfClasses(), bpp::log(), and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
|
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::getLogLikelihoodPerSitePerState().
|
virtualinherited |
Get the logarithm of the likelihood for each site.
Implements bpp::TreeLikelihoodInterface.
Definition at line 23 of file AbstractTreeLikelihood.cpp.
References bpp::TreeLikelihoodInterface::getLogLikelihoodForASite(), and bpp::AbstractTreeLikelihood::getNumberOfSites().
|
pure virtualinherited |
Get the logarithm of the likelihood for each site.
Implemented in bpp::AbstractTreeLikelihood.
Referenced by bpp::PairedSiteLikelihoods::appendModel().
|
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::DiscreteRatesAcrossSitesTreeLikelihoodInterface.
Definition at line 102 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
References bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface::getLogLikelihoodForASiteForARateClass(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getNumberOfClasses(), and bpp::AbstractTreeLikelihood::getNumberOfSites().
|
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::DiscreteRatesAcrossSitesTreeLikelihoodInterface.
Definition at line 143 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
References bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface::getLogLikelihoodForASiteForARateClassForAState(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getNumberOfClasses(), bpp::AbstractTreeLikelihood::getNumberOfSites(), and bpp::TreeLikelihoodInterface::getNumberOfStates().
|
virtualinherited |
Get the logarithm of the likelihood for each site and for each state.
Implements bpp::TreeLikelihoodInterface.
Definition at line 52 of file AbstractTreeLikelihood.cpp.
References bpp::TreeLikelihoodInterface::getLogLikelihoodForASiteForAState(), bpp::AbstractTreeLikelihood::getNumberOfSites(), and bpp::TreeLikelihoodInterface::getNumberOfStates().
|
pure virtualinherited |
Get the logarithm of the likelihood for each site and for each state.
Implemented in bpp::AbstractTreeLikelihood.
|
inlinevirtual |
Definition at line 244 of file AbstractNonHomogeneousTreeLikelihood.h.
References maximumBrLen_.
|
inlinevirtual |
Definition at line 243 of file AbstractNonHomogeneousTreeLikelihood.h.
References minimumBrLen_.
|
inlineoverridevirtual |
Get the model associated to a given node.
nodeId | The id of the request node. |
NodeNotFoundException | This exception may be thrown if the node is not found (depending on the implementation). |
Implements bpp::NonHomogeneousTreeLikelihood.
Definition at line 158 of file AbstractNonHomogeneousTreeLikelihood.h.
References modelSet_.
|
inlineoverridevirtual |
Get the substitution model associated to a given node.
nodeId | The id of the request node. |
NodeNotFoundException | This exception may be thrown if the node is not found (depending on the implementation). |
Implements bpp::NonHomogeneousTreeLikelihood.
Definition at line 163 of file AbstractNonHomogeneousTreeLikelihood.h.
References modelSet_.
|
inlineoverridevirtualinherited |
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. |
Implements bpp::TreeLikelihoodInterface.
Definition at line 32 of file NonHomogeneousTreeLikelihood.h.
References bpp::NonHomogeneousTreeLikelihood::getModelForNode().
|
inlineoverridevirtualinherited |
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::TreeLikelihoodInterface.
Definition at line 37 of file NonHomogeneousTreeLikelihood.h.
References bpp::NonHomogeneousTreeLikelihood::getModelForNode().
|
inlineoverridevirtual |
Implements bpp::TreeLikelihoodInterface.
Definition at line 172 of file AbstractNonHomogeneousTreeLikelihood.h.
References modelSet_, and nbDistinctSites_.
|
inlineoverridevirtual |
Implements bpp::TreeLikelihoodInterface.
Definition at line 177 of file AbstractNonHomogeneousTreeLikelihood.h.
References modelSet_.
|
virtualinherited |
All non derivable parameters.
Usually, this contains all substitution model parameters and rate distribution.
Implements bpp::TreeLikelihoodInterface.
Definition at line 46 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
References bpp::ParameterList::addParameters(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getRateDistributionParameters(), bpp::TreeLikelihoodInterface::getSubstitutionModelParameters(), and bpp::AbstractTreeLikelihood::initialized_.
|
pure virtualinherited |
All non derivable parameters.
Usually, this contains all substitution model parameters and rate distribution.
Implemented in bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.
|
inlinevirtualinherited |
Get the number of classes.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface.
Definition at line 90 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.h.
References bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
Referenced by bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLikelihoodForASiteForAState(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLikelihoodPerSitePerRateClass(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLikelihoodPerSitePerRateClassPerState(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLogLikelihoodForASiteForAState(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLogLikelihoodPerSitePerRateClass(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLogLikelihoodPerSitePerRateClassPerState(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getPosteriorProbabilitiesPerRate(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getPosteriorRatePerSite(), and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getTransitionProbabilities().
|
inlinevirtualinherited |
Get the number of sites in the dataset.
Implements bpp::TreeLikelihoodInterface.
Definition at line 268 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::data_.
Referenced by bpp::AbstractTreeLikelihood::getLikelihoodPerSite(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLikelihoodPerSitePerRateClass(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLikelihoodPerSitePerRateClassPerState(), bpp::AbstractTreeLikelihood::getLikelihoodPerSitePerState(), bpp::AbstractTreeLikelihood::getLogLikelihoodPerSite(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLogLikelihoodPerSitePerRateClass(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLogLikelihoodPerSitePerRateClassPerState(), bpp::AbstractTreeLikelihood::getLogLikelihoodPerSitePerState(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getPosteriorProbabilitiesPerRate(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getPosteriorRatePerSite(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getRateClassWithMaxPostProbPerSite(), and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getRateWithMaxPostProbPerSite().
|
pure virtualinherited |
Get the number of sites in the dataset.
Implemented in bpp::AbstractTreeLikelihood.
|
inlineoverridevirtual |
Implements bpp::TreeLikelihoodInterface.
Definition at line 139 of file AbstractNonHomogeneousTreeLikelihood.h.
References modelSet_.
|
virtualinherited |
Get the posterior probability for each site of belonging to a particular rate class.
V[i][j] =
probability for site i of belonging to rate class j. Implements bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface.
Definition at line 166 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
References bpp::AbstractTreeLikelihood::getLikelihoodPerSite(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLikelihoodPerSitePerRateClass(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getNumberOfClasses(), bpp::AbstractTreeLikelihood::getNumberOfSites(), and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
|
virtualinherited |
Get the posterior rate, i.e. averaged over all classes and weighted with posterior probabilities, for each site.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface.
Definition at line 184 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
References bpp::AbstractTreeLikelihood::getLikelihoodPerSite(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLikelihoodPerSitePerRateClass(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getNumberOfClasses(), bpp::AbstractTreeLikelihood::getNumberOfSites(), and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
|
virtualinherited |
Get the posterior rate class (the one with maximum posterior probability) for each site.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface.
Definition at line 203 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
References bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLikelihoodPerSitePerRateClass(), and bpp::AbstractTreeLikelihood::getNumberOfSites().
|
inlinevirtualinherited |
Get the rate distribution used for the computation.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface.
Definition at line 75 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.h.
References bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
|
inlinevirtualinherited |
Get the rate distribution used for the computation.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface.
Definition at line 70 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.h.
References bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
|
inlineoverridevirtual |
Get the parameters associated to the rate distribution.
Reimplemented from bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood.
Definition at line 153 of file AbstractNonHomogeneousTreeLikelihood.h.
References bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getRateDistributionParameters().
Referenced by bpp::DRNonHomogeneousTreeLikelihood::getFirstOrderDerivative(), bpp::RNonHomogeneousTreeLikelihood::getFirstOrderDerivative(), bpp::DRNonHomogeneousTreeLikelihood::getSecondOrderDerivative(), and bpp::RNonHomogeneousTreeLikelihood::getSecondOrderDerivative().
|
virtualinherited |
Get the posterior rate (the one with maximum posterior probability) for each site.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface.
Definition at line 217 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
References bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLikelihoodPerSitePerRateClass(), bpp::AbstractTreeLikelihood::getNumberOfSites(), and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
|
inlineoverridevirtual |
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::TreeLikelihoodInterface.
Definition at line 168 of file AbstractNonHomogeneousTreeLikelihood.h.
References rootFreqs_.
|
inlineoverridevirtual |
Implements bpp::NonHomogeneousTreeLikelihood.
Definition at line 201 of file AbstractNonHomogeneousTreeLikelihood.h.
References modelSet_.
|
pure virtualinherited |
Get the index (used for inner computations) of a given site (original alignment column).
site | An alignment position. |
Implemented in bpp::DRHomogeneousTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, and bpp::DRNonHomogeneousTreeLikelihood.
Referenced by bpp::TreeLikelihoodTools::getAncestralFrequencies().
|
overridevirtual |
Get the parameters associated to substitution model(s).
Implements bpp::TreeLikelihoodInterface.
Definition at line 258 of file AbstractNonHomogeneousTreeLikelihood.cpp.
References bpp::AbstractParametrizable::getParameters(), bpp::AbstractTreeLikelihood::initialized_, and modelSet_.
Referenced by bpp::DRNonHomogeneousTreeLikelihood::getFirstOrderDerivative(), bpp::RNonHomogeneousTreeLikelihood::getFirstOrderDerivative(), bpp::DRNonHomogeneousTreeLikelihood::getSecondOrderDerivative(), and bpp::RNonHomogeneousTreeLikelihood::getSecondOrderDerivative().
|
inlineoverridevirtual |
Implements bpp::NonHomogeneousTreeLikelihood.
Definition at line 191 of file AbstractNonHomogeneousTreeLikelihood.h.
References modelSet_.
|
inlineoverridevirtual |
Implements bpp::NonHomogeneousTreeLikelihood.
Definition at line 195 of file AbstractNonHomogeneousTreeLikelihood.h.
References modelSet_.
|
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::TreeLikelihoodInterface.
Definition at line 275 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.cpp.
References bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getNumberOfClasses(), bpp::TreeLikelihoodInterface::getNumberOfStates(), bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface::getTransitionProbabilitiesPerRateClass(), and bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
|
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.
Referenced by bpp::TreeLikelihoodTools::getAncestralFrequencies_().
|
inlineoverridevirtual |
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::DiscreteRatesAcrossSitesTreeLikelihoodInterface.
Definition at line 170 of file AbstractNonHomogeneousTreeLikelihood.h.
References pxy_.
|
inlinevirtualinherited |
Implements bpp::TreeLikelihoodInterface.
Definition at line 261 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::data_.
Referenced by bpp::RNonHomogeneousMixedTreeLikelihood::init().
|
pure virtualinherited |
Implemented in bpp::AbstractTreeLikelihood.
|
private |
Method called by constructor.
Definition at line 128 of file AbstractNonHomogeneousTreeLikelihood.cpp.
References brLenConstraint_, bpp::TreeTools::checkIds(), bpp::Node::getId(), idToNode_, maximumBrLen_, minimumBrLen_, nbClasses_, nbNodes_, nodes_, bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_, root1_, root2_, setSubstitutionModelSet(), bpp::AbstractTreeLikelihood::tree(), bpp::AbstractTreeLikelihood::tree_, and verbose_.
Referenced by AbstractNonHomogeneousTreeLikelihood().
|
virtual |
Definition at line 321 of file AbstractNonHomogeneousTreeLikelihood.cpp.
References bpp::ParameterList::addParameter(), brLenConstraint_, brLenParameters_, bpp::ApplicationTools::displayWarning(), maximumBrLen_, minimumBrLen_, nbNodes_, nodes_, bpp::Parameter::PROP_CONSTRAINT_EX, reparametrizeRoot_, bpp::ParameterList::reset(), root1_, root2_, and bpp::TextTools::toString().
Referenced by bpp::RNonHomogeneousMixedTreeLikelihood::initialize(), initParameters(), setMaximumBranchLength(), and setMinimumBranchLength().
|
overridevirtual |
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::TreeLikelihoodInterface.
Reimplemented in bpp::RNonHomogeneousMixedTreeLikelihood.
Definition at line 234 of file AbstractNonHomogeneousTreeLikelihood.cpp.
References computeAllTransitionProbabilities(), bpp::AbstractTreeLikelihood::data_, bpp::AbstractParametrizable::fireParameterChanged(), bpp::AbstractParametrizable::getParameters(), bpp::AbstractTreeLikelihood::initialized_, and initParameters().
Referenced by bpp::RNonHomogeneousMixedTreeLikelihood::initialize().
|
virtual |
This builds the parameters list from all parametrizable objects, i.e. substitution model, rate distribution and tree.
Definition at line 267 of file AbstractNonHomogeneousTreeLikelihood.cpp.
References bpp::AbstractParametrizable::addParameters_(), brLenParameters_, initBranchLengthsParameters(), modelSet_, bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_, and bpp::AbstractParametrizable::resetParameters_().
Referenced by bpp::RNonHomogeneousMixedTreeLikelihood::initialize(), initialize(), and setSubstitutionModelSet().
|
inlinevirtualinherited |
Implements bpp::TreeLikelihoodInterface.
Definition at line 275 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::initialized_.
Referenced by bpp::DRNonHomogeneousTreeLikelihood::getValue(), bpp::RHomogeneousTreeLikelihood::getValue(), bpp::RNonHomogeneousTreeLikelihood::getValue(), and bpp::DRHomogeneousTreeLikelihood::getValue().
|
pure virtualinherited |
Implemented in bpp::AbstractTreeLikelihood.
|
pure virtualinherited |
Implemented in bpp::DRTreeLikelihoodInterface, bpp::DRHomogeneousTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, and bpp::DRNonHomogeneousTreeLikelihood.
|
pure virtualinherited |
Implemented in bpp::DRTreeLikelihoodInterface, bpp::DRHomogeneousTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::RHomogeneousTreeLikelihood, and bpp::DRNonHomogeneousTreeLikelihood.
Referenced by bpp::TreeLikelihoodTools::getAncestralFrequencies().
AbstractNonHomogeneousTreeLikelihood & AbstractNonHomogeneousTreeLikelihood::operator= | ( | const AbstractNonHomogeneousTreeLikelihood & | lik | ) |
Assignation operator.
This operator is to be called by the derived class operator.
Definition at line 93 of file AbstractNonHomogeneousTreeLikelihood.cpp.
References brLenConstraint_, brLenParameters_, d2pxy_, dpxy_, bpp::Node::getId(), idToNode_, maximumBrLen_, minimumBrLen_, modelSet_, nbClasses_, nbDistinctSites_, nbNodes_, nbSites_, nbStates_, nodes_, bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::operator=(), pxy_, reparametrizeRoot_, root1_, root2_, rootFreqs_, bpp::AbstractTreeLikelihood::tree_, and verbose_.
Referenced by bpp::DRNonHomogeneousTreeLikelihood::operator=(), and bpp::RNonHomogeneousTreeLikelihood::operator=().
|
inlinevirtualinherited |
Get the rate distribution used for the computation.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface.
Definition at line 85 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.h.
References bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
|
inlinevirtualinherited |
Get the rate distribution used for the computation.
Implements bpp::DiscreteRatesAcrossSitesTreeLikelihoodInterface.
Definition at line 80 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.h.
References bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution_.
|
staticinherited |
Set all conditional likelihoods to 1.
likelihoodArray | the likelihood array. |
Definition at line 231 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(), bpp::DRNonHomogeneousTreeLikelihood::resetLikelihoodArrays(), and bpp::NNIHomogeneousTreeLikelihood::testNNI().
|
pure virtualinherited |
Set the dataset for which the likelihood must be evaluated.
sites | The data set to use. |
Implemented in bpp::NNIHomogeneousTreeLikelihood, bpp::DRHomogeneousTreeLikelihood, bpp::RNonHomogeneousTreeLikelihood, bpp::RNonHomogeneousMixedTreeLikelihood, bpp::RHomogeneousTreeLikelihood, bpp::RHomogeneousMixedTreeLikelihood, bpp::DRNonHomogeneousTreeLikelihood, and bpp::DRHomogeneousMixedTreeLikelihood.
Referenced by bpp::AbstractHomogeneousTreeLikelihood::setModel(), and setSubstitutionModelSet().
|
inlinevirtual |
Definition at line 234 of file AbstractNonHomogeneousTreeLikelihood.h.
References brLenConstraint_, initBranchLengthsParameters(), maximumBrLen_, minimumBrLen_, and bpp::TextTools::toString().
|
inlinevirtual |
Definition at line 225 of file AbstractNonHomogeneousTreeLikelihood.h.
References brLenConstraint_, initBranchLengthsParameters(), maximumBrLen_, minimumBrLen_, and bpp::TextTools::toString().
|
overridevirtual |
Exception | If the model could not be set (for instance, because of a wrong alphabet type). |
Implements bpp::NonHomogeneousTreeLikelihood.
Definition at line 159 of file AbstractNonHomogeneousTreeLikelihood.cpp.
References computeAllTransitionProbabilities(), d2pxy_, bpp::AbstractTreeLikelihood::data_, dpxy_, bpp::AbstractParametrizable::fireParameterChanged(), bpp::Node::getId(), bpp::AbstractParametrizable::getParameters(), bpp::AbstractTreeLikelihood::initialized_, initParameters(), modelSet_, nbClasses_, nbNodes_, nbStates_, nodes_, pxy_, and bpp::TreeLikelihoodInterface::setData().
Referenced by init_().
|
inlineoverridevirtual |
Implements bpp::NonHomogeneousTreeLikelihood.
Definition at line 193 of file AbstractNonHomogeneousTreeLikelihood.h.
References modelSet_.
|
inlineoverridevirtual |
Implements bpp::NonHomogeneousTreeLikelihood.
Definition at line 197 of file AbstractNonHomogeneousTreeLikelihood.h.
References modelSet_.
|
inlinevirtualinherited |
Get the tree (topology and branch lengths).
Implements bpp::TreeLikelihoodInterface.
Definition at line 269 of file AbstractTreeLikelihood.h.
References bpp::AbstractTreeLikelihood::tree_.
Referenced by bpp::AbstractHomogeneousTreeLikelihood::AbstractHomogeneousTreeLikelihood(), AbstractNonHomogeneousTreeLikelihood(), bpp::DRHomogeneousMixedTreeLikelihood::DRHomogeneousMixedTreeLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::DRNonHomogeneousTreeLikelihood(), bpp::RNonHomogeneousMixedTreeLikelihood::init(), init_(), bpp::AbstractHomogeneousTreeLikelihood::init_(), bpp::RHomogeneousMixedTreeLikelihood::RHomogeneousMixedTreeLikelihood(), bpp::RNonHomogeneousMixedTreeLikelihood::RNonHomogeneousMixedTreeLikelihood(), bpp::RNonHomogeneousTreeLikelihood::RNonHomogeneousTreeLikelihood(), and bpp::NNIHomogeneousTreeLikelihood::topology().
|
pure virtualinherited |
Get the tree (topology and branch lengths).
Implemented in bpp::AbstractTreeLikelihood.
Referenced by bpp::PairedSiteLikelihoods::appendModel(), bpp::TreeLikelihoodTools::getAncestralFrequencies(), bpp::TreeLikelihoodTools::getAncestralFrequencies_(), and bpp::DRTreeLikelihoodTools::getPosteriorProbabilitiesPerStatePerRate().
|
protected |
Definition at line 92 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by init_(), initBranchLengthsParameters(), operator=(), setMaximumBranchLength(), and setMinimumBranchLength().
|
protected |
Definition at line 58 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by bpp::DRNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousMixedTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousTreeLikelihood::fireParameterChanged(), getBranchLengthsParameters(), initBranchLengthsParameters(), bpp::RNonHomogeneousMixedTreeLikelihood::initialize(), initParameters(), and operator=().
|
protectedinherited |
Definition at line 210 of file AbstractTreeLikelihood.h.
Referenced by bpp::AbstractHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::AbstractTreeLikelihood::enableDerivatives(), bpp::AbstractTreeLikelihood::enableFirstOrderDerivatives(), bpp::AbstractTreeLikelihood::enableSecondOrderDerivatives(), bpp::DRNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::DRHomogeneousTreeLikelihood::fireParameterChanged(), and bpp::AbstractTreeLikelihood::operator=().
|
protectedinherited |
Definition at line 211 of file AbstractTreeLikelihood.h.
Referenced by bpp::AbstractHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::AbstractTreeLikelihood::enableDerivatives(), bpp::AbstractTreeLikelihood::enableSecondOrderDerivatives(), bpp::DRNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::DRHomogeneousTreeLikelihood::fireParameterChanged(), and bpp::AbstractTreeLikelihood::operator=().
|
mutableprotected |
Definition at line 64 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousTreeLikelihood::computeTreeD2Likelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeD2LikelihoodAtNode(), bpp::DRNonHomogeneousTreeLikelihood::getSecondOrderDerivative(), operator=(), and setSubstitutionModelSet().
|
protectedinherited |
Definition at line 208 of file AbstractTreeLikelihood.h.
Referenced by bpp::AbstractTreeLikelihood::AbstractTreeLikelihood(), bpp::AbstractTreeLikelihood::data(), bpp::AbstractTreeLikelihood::getAlphabet(), bpp::AbstractTreeLikelihood::getNumberOfSites(), bpp::AbstractTreeLikelihood::hasLikelihoodData(), bpp::AbstractHomogeneousTreeLikelihood::initialize(), initialize(), bpp::AbstractTreeLikelihood::operator=(), bpp::DRNonHomogeneousTreeLikelihood::setData(), bpp::RHomogeneousTreeLikelihood::setData(), bpp::RNonHomogeneousTreeLikelihood::setData(), bpp::DRHomogeneousTreeLikelihood::setData(), bpp::AbstractHomogeneousTreeLikelihood::setModel(), and setSubstitutionModelSet().
|
mutableprotected |
Definition at line 62 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousTreeLikelihood::computeTreeD2Likelihood(), bpp::RNonHomogeneousTreeLikelihood::computeTreeDLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeDLikelihoodAtNode(), bpp::DRNonHomogeneousTreeLikelihood::getSecondOrderDerivative(), operator=(), and setSubstitutionModelSet().
|
mutableprotected |
An index linking nodes to their id, for faster access than the getNode() method.
Definition at line 79 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by AbstractNonHomogeneousTreeLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousMixedTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousTreeLikelihood::fireParameterChanged(), init_(), and operator=().
|
protectedinherited |
Definition at line 212 of file AbstractTreeLikelihood.h.
Referenced by bpp::AbstractHomogeneousTreeLikelihood::applyParameters(), applyParameters(), bpp::AbstractHomogeneousTreeLikelihood::getBranchLengthsParameters(), getBranchLengthsParameters(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getDerivableParameters(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getNonDerivableParameters(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getRateDistributionParameters(), bpp::AbstractHomogeneousTreeLikelihood::getSubstitutionModelParameters(), getSubstitutionModelParameters(), bpp::AbstractHomogeneousTreeLikelihood::initialize(), bpp::AbstractTreeLikelihood::initialize(), initialize(), bpp::AbstractTreeLikelihood::isInitialized(), bpp::AbstractTreeLikelihood::operator=(), bpp::DRNonHomogeneousTreeLikelihood::setData(), bpp::RHomogeneousTreeLikelihood::setData(), bpp::RNonHomogeneousTreeLikelihood::setData(), bpp::DRHomogeneousTreeLikelihood::setData(), and setSubstitutionModelSet().
|
protected |
Definition at line 91 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by getMaximumBranchLength(), init_(), initBranchLengthsParameters(), operator=(), setMaximumBranchLength(), and setMinimumBranchLength().
|
protected |
Definition at line 90 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by getMinimumBranchLength(), init_(), initBranchLengthsParameters(), operator=(), setMaximumBranchLength(), and setMinimumBranchLength().
|
protected |
Definition at line 57 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by applyParameters(), computeAllTransitionProbabilities(), computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::DRNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousMixedTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousTreeLikelihood::fireParameterChanged(), getAlphabetStateAsChar(), getAlphabetStateAsInt(), getAlphabetStates(), getModelForNode(), getNewBranchModelIterator(), getNewSiteModelIterator(), getNumberOfStates(), getRootFrequenciesParameters(), getSubstitutionModelParameters(), getSubstitutionModelSet(), bpp::RNonHomogeneousMixedTreeLikelihood::init(), initParameters(), operator=(), bpp::DRNonHomogeneousTreeLikelihood::setData(), bpp::RNonHomogeneousTreeLikelihood::setData(), setSubstitutionModelSet(), and substitutionModelSet().
|
protected |
Definition at line 84 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by bpp::RNonHomogeneousTreeLikelihood::computeDownSubtreeD2Likelihood(), bpp::RNonHomogeneousTreeLikelihood::computeDownSubtreeDLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeLikelihoodAtNode_(), bpp::DRNonHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::RNonHomogeneousMixedTreeLikelihood::computeSubtreeLikelihood(), bpp::RNonHomogeneousTreeLikelihood::computeSubtreeLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeSubtreeLikelihoodPostfix(), bpp::DRNonHomogeneousTreeLikelihood::computeSubtreeLikelihoodPrefix(), computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTreeD2Likelihood(), bpp::RNonHomogeneousTreeLikelihood::computeTreeD2Likelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeD2LikelihoodAtNode(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTreeDLikelihood(), bpp::RNonHomogeneousTreeLikelihood::computeTreeDLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeDLikelihoodAtNode(), bpp::RNonHomogeneousTreeLikelihood::getD2LikelihoodForASite(), bpp::RNonHomogeneousTreeLikelihood::getDLikelihoodForASite(), bpp::RNonHomogeneousTreeLikelihood::getLikelihoodForASite(), bpp::RNonHomogeneousTreeLikelihood::getLogLikelihoodForASite(), bpp::DRNonHomogeneousTreeLikelihood::getSecondOrderDerivative(), init_(), operator=(), and setSubstitutionModelSet().
|
protected |
Definition at line 83 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by bpp::DRNonHomogeneousTreeLikelihood::computeLikelihoodAtNode_(), bpp::DRNonHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeSubtreeLikelihoodPostfix(), bpp::DRNonHomogeneousTreeLikelihood::computeSubtreeLikelihoodPrefix(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeD2LikelihoodAtNode(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeDLikelihoodAtNode(), bpp::DRNonHomogeneousTreeLikelihood::getFirstOrderDerivative(), bpp::DRNonHomogeneousTreeLikelihood::getLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::getLogLikelihood(), getNewBranchModelIterator(), bpp::DRNonHomogeneousTreeLikelihood::getSecondOrderDerivative(), operator=(), bpp::DRNonHomogeneousTreeLikelihood::setData(), and bpp::RNonHomogeneousTreeLikelihood::setData().
|
protected |
Definition at line 86 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by applyParameters(), computeAllTransitionProbabilities(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeD2Likelihoods(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeDLikelihoods(), bpp::RNonHomogeneousMixedTreeLikelihood::fireParameterChanged(), init_(), initBranchLengthsParameters(), operator=(), and setSubstitutionModelSet().
|
protected |
Definition at line 82 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by bpp::RNonHomogeneousTreeLikelihood::getD2LogLikelihood(), bpp::RNonHomogeneousTreeLikelihood::getDLogLikelihood(), bpp::RNonHomogeneousTreeLikelihood::getLikelihood(), bpp::RNonHomogeneousTreeLikelihood::getLogLikelihood(), operator=(), bpp::DRNonHomogeneousTreeLikelihood::setData(), and bpp::RNonHomogeneousTreeLikelihood::setData().
|
protected |
Definition at line 85 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by bpp::RNonHomogeneousTreeLikelihood::computeDownSubtreeD2Likelihood(), bpp::RNonHomogeneousTreeLikelihood::computeDownSubtreeDLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeLikelihoodAtNode_(), bpp::DRNonHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::RNonHomogeneousMixedTreeLikelihood::computeSubtreeLikelihood(), bpp::RNonHomogeneousTreeLikelihood::computeSubtreeLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeSubtreeLikelihoodPostfix(), bpp::DRNonHomogeneousTreeLikelihood::computeSubtreeLikelihoodPrefix(), computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTreeD2Likelihood(), bpp::RNonHomogeneousTreeLikelihood::computeTreeD2Likelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeD2LikelihoodAtNode(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTreeDLikelihood(), bpp::RNonHomogeneousTreeLikelihood::computeTreeDLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeDLikelihoodAtNode(), bpp::RNonHomogeneousTreeLikelihood::getD2LikelihoodForASiteForARateClass(), bpp::RNonHomogeneousTreeLikelihood::getDLikelihoodForASiteForARateClass(), bpp::RNonHomogeneousTreeLikelihood::getLikelihoodForASiteForARateClass(), bpp::RNonHomogeneousTreeLikelihood::getLogLikelihoodForASiteForARateClass(), bpp::DRNonHomogeneousTreeLikelihood::getSecondOrderDerivative(), operator=(), bpp::DRNonHomogeneousTreeLikelihood::setData(), bpp::RNonHomogeneousTreeLikelihood::setData(), and setSubstitutionModelSet().
|
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 74 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by AbstractNonHomogeneousTreeLikelihood(), applyParameters(), computeAllTransitionProbabilities(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTreeD2Likelihood(), bpp::RNonHomogeneousTreeLikelihood::computeTreeD2Likelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeD2Likelihoods(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTreeDLikelihood(), bpp::RNonHomogeneousTreeLikelihood::computeTreeDLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeDLikelihoods(), bpp::DRNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousMixedTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::DRNonHomogeneousTreeLikelihood::getFirstOrderDerivative(), bpp::DRNonHomogeneousTreeLikelihood::getSecondOrderDerivative(), init_(), initBranchLengthsParameters(), operator=(), and setSubstitutionModelSet().
|
mutableprotected |
Definition at line 60 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by bpp::RNonHomogeneousTreeLikelihood::computeDownSubtreeD2Likelihood(), bpp::RNonHomogeneousTreeLikelihood::computeDownSubtreeDLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeLikelihoodAtNode_(), bpp::DRNonHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::RNonHomogeneousTreeLikelihood::computeSubtreeLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeSubtreeLikelihoodPostfix(), bpp::DRNonHomogeneousTreeLikelihood::computeSubtreeLikelihoodPrefix(), computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousTreeLikelihood::computeTreeD2Likelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeD2LikelihoodAtNode(), bpp::RNonHomogeneousTreeLikelihood::computeTreeDLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeDLikelihoodAtNode(), bpp::DRNonHomogeneousTreeLikelihood::getSecondOrderDerivative(), getTransitionProbabilitiesPerRateClass(), operator=(), and setSubstitutionModelSet().
|
protectedinherited |
Definition at line 26 of file AbstractDiscreteRatesAcrossSitesTreeLikelihood.h.
Referenced by bpp::AbstractHomogeneousTreeLikelihood::applyParameters(), applyParameters(), bpp::DRHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::AbstractHomogeneousTreeLikelihood::computeTransitionProbabilitiesForNode(), computeTransitionProbabilitiesForNode(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTransitionProbabilitiesForNode(), bpp::DRHomogeneousTreeLikelihood::computeTreeD2LikelihoodAtNode(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeD2LikelihoodAtNode(), bpp::DRHomogeneousTreeLikelihood::computeTreeDLikelihoodAtNode(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeDLikelihoodAtNode(), bpp::DRNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousMixedTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::DRHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RHomogeneousTreeLikelihood::getD2LikelihoodForASite(), bpp::RNonHomogeneousTreeLikelihood::getD2LikelihoodForASite(), bpp::RHomogeneousTreeLikelihood::getDLikelihoodForASite(), bpp::RNonHomogeneousTreeLikelihood::getDLikelihoodForASite(), bpp::RHomogeneousTreeLikelihood::getLikelihoodForASite(), bpp::RNonHomogeneousTreeLikelihood::getLikelihoodForASite(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLikelihoodForASiteForAState(), bpp::RHomogeneousTreeLikelihood::getLogLikelihoodForASite(), bpp::RNonHomogeneousTreeLikelihood::getLogLikelihoodForASite(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getLogLikelihoodForASiteForAState(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getNumberOfClasses(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getPosteriorProbabilitiesPerRate(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getPosteriorRatePerSite(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getRateDistribution(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getRateDistributionParameters(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getRateWithMaxPostProbPerSite(), bpp::DRNonHomogeneousTreeLikelihood::getSecondOrderDerivative(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::getTransitionProbabilities(), bpp::RNonHomogeneousMixedTreeLikelihood::init(), bpp::DRHomogeneousTreeLikelihood::init_(), bpp::DRNonHomogeneousTreeLikelihood::init_(), bpp::RHomogeneousTreeLikelihood::init_(), bpp::RNonHomogeneousTreeLikelihood::init_(), init_(), bpp::AbstractHomogeneousTreeLikelihood::init_(), bpp::AbstractHomogeneousTreeLikelihood::initParameters(), initParameters(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::operator=(), bpp::AbstractDiscreteRatesAcrossSitesTreeLikelihood::rateDistribution(), and bpp::NNIHomogeneousTreeLikelihood::testNNI().
|
protected |
Definition at line 94 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by applyParameters(), bpp::RNonHomogeneousMixedTreeLikelihood::fireParameterChanged(), initBranchLengthsParameters(), and operator=().
|
protected |
Definition at line 95 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by applyParameters(), bpp::RNonHomogeneousTreeLikelihood::computeTreeD2Likelihood(), bpp::RNonHomogeneousTreeLikelihood::computeTreeDLikelihood(), bpp::RNonHomogeneousMixedTreeLikelihood::fireParameterChanged(), bpp::DRNonHomogeneousTreeLikelihood::getFirstOrderDerivative(), bpp::DRNonHomogeneousTreeLikelihood::getSecondOrderDerivative(), init_(), initBranchLengthsParameters(), and operator=().
|
protected |
Definition at line 95 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by applyParameters(), bpp::RNonHomogeneousTreeLikelihood::computeTreeD2Likelihood(), bpp::RNonHomogeneousTreeLikelihood::computeTreeDLikelihood(), bpp::RNonHomogeneousMixedTreeLikelihood::fireParameterChanged(), bpp::DRNonHomogeneousTreeLikelihood::getFirstOrderDerivative(), bpp::DRNonHomogeneousTreeLikelihood::getSecondOrderDerivative(), init_(), initBranchLengthsParameters(), and operator=().
|
protected |
Definition at line 66 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by computeAllTransitionProbabilities(), bpp::DRNonHomogeneousTreeLikelihood::computeLikelihoodAtNode_(), bpp::DRNonHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeSubtreeLikelihoodPrefix(), bpp::DRNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousMixedTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousTreeLikelihood::getD2LikelihoodForASiteForARateClass(), bpp::RNonHomogeneousTreeLikelihood::getDLikelihoodForASiteForARateClass(), bpp::RNonHomogeneousTreeLikelihood::getLikelihoodForASiteForARateClass(), bpp::RNonHomogeneousTreeLikelihood::getLogLikelihoodForASiteForARateClass(), getRootFrequencies(), bpp::DRNonHomogeneousTreeLikelihood::getSecondOrderDerivative(), and operator=().
|
mutableprotectedinherited |
Definition at line 209 of file AbstractTreeLikelihood.h.
Referenced by bpp::AbstractHomogeneousTreeLikelihood::AbstractHomogeneousTreeLikelihood(), AbstractNonHomogeneousTreeLikelihood(), bpp::AbstractTreeLikelihood::AbstractTreeLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeLikelihoodAtNode(), bpp::DRHomogeneousTreeLikelihood::computeLikelihoodAtNode(), bpp::DRHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeRootLikelihood(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTreeD2Likelihood(), bpp::RNonHomogeneousTreeLikelihood::computeTreeD2Likelihood(), bpp::RNonHomogeneousMixedTreeLikelihood::computeTreeDLikelihood(), bpp::RNonHomogeneousTreeLikelihood::computeTreeDLikelihood(), bpp::DRHomogeneousTreeLikelihood::computeTreeLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::computeTreeLikelihood(), bpp::RHomogeneousTreeLikelihood::computeTreeLikelihood(), bpp::RNonHomogeneousTreeLikelihood::computeTreeLikelihood(), bpp::NNIHomogeneousTreeLikelihood::doNNI(), bpp::DRHomogeneousTreeLikelihood::DRHomogeneousTreeLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::DRNonHomogeneousTreeLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousMixedTreeLikelihood::fireParameterChanged(), bpp::RNonHomogeneousTreeLikelihood::fireParameterChanged(), bpp::RHomogeneousTreeLikelihood::getD2LikelihoodForASiteForARateClass(), bpp::RNonHomogeneousTreeLikelihood::getD2LikelihoodForASiteForARateClass(), bpp::RHomogeneousTreeLikelihood::getDLikelihoodForASiteForARateClass(), bpp::RNonHomogeneousTreeLikelihood::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(), bpp::AbstractHomogeneousTreeLikelihood::getNewSiteModelIterator(), bpp::DRNonHomogeneousTreeLikelihood::getSecondOrderDerivative(), bpp::DRHomogeneousTreeLikelihood::init_(), bpp::DRNonHomogeneousTreeLikelihood::init_(), bpp::RHomogeneousTreeLikelihood::init_(), bpp::RNonHomogeneousTreeLikelihood::init_(), init_(), bpp::AbstractHomogeneousTreeLikelihood::init_(), bpp::AbstractHomogeneousTreeLikelihood::operator=(), operator=(), bpp::AbstractTreeLikelihood::operator=(), bpp::DRHomogeneousTreeLikelihood::operator=(), bpp::DRNonHomogeneousTreeLikelihood::operator=(), bpp::RHomogeneousTreeLikelihood::operator=(), bpp::RNonHomogeneousTreeLikelihood::operator=(), bpp::RHomogeneousTreeLikelihood::RHomogeneousTreeLikelihood(), bpp::RNonHomogeneousTreeLikelihood::RNonHomogeneousTreeLikelihood(), bpp::DRNonHomogeneousTreeLikelihood::setData(), bpp::RHomogeneousTreeLikelihood::setData(), bpp::RNonHomogeneousTreeLikelihood::setData(), bpp::DRHomogeneousTreeLikelihood::setData(), bpp::NNIHomogeneousTreeLikelihood::testNNI(), and bpp::AbstractTreeLikelihood::tree().
|
protected |
Definition at line 88 of file AbstractNonHomogeneousTreeLikelihood.h.
Referenced by init_(), operator=(), bpp::DRNonHomogeneousTreeLikelihood::setData(), and bpp::RNonHomogeneousTreeLikelihood::setData().