|
bpp-phyl3 3.0.0
|
#include <Bpp/Phyl/Likelihood/PhyloLikelihoods/AlignedPhyloLikelihood.h>
Inheritance diagram for bpp::AbstractAlignedPhyloLikelihood:
Collaboration diagram for bpp::AbstractAlignedPhyloLikelihood:Public Member Functions | |
| AbstractAlignedPhyloLikelihood (Context &context, size_t nbSites) | |
| virtual | ~AbstractAlignedPhyloLikelihood () |
| size_t | getNumberOfSites () const |
| Get the number of sites in the dataset. More... | |
| DataLik | getLikelihoodForASite (size_t site) const |
| Get the likelihood for a site (on uncompressed data) More... | |
| double | getLogLikelihoodForASite (size_t site) const |
| Get the log likelihood for a site, and its derivatives. More... | |
| VDataLik | getLikelihoodPerSite () const |
| Get the likelihood for each site. More... | |
| virtual AlignedPhyloLikelihoodInterface * | clone () const =0 |
| virtual LikelihoodCalculation & | likelihoodCalculation () const =0 |
| virtual std::shared_ptr< LikelihoodCalculation > | getLikelihoodCalculation () const =0 |
| 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 |
| const Context & | context () const override |
| Context & | context () override |
| virtual bool | isInitialized () const override |
| Sets the computeLikelihoods_ to true. More... | |
| void | shareParameters (const ParameterList &variableNodes) |
| Share Parameters, that are DF_parameters. More... | |
| void | setParameters (const ParameterList ¶meters) override |
| ValueRef< DataLik > | getLikelihoodNode () const override |
| virtual void | enableFirstOrderDerivatives (bool yn) override |
| Tell if derivatives must be computed: for Function inheritance. More... | |
| bool | enableFirstOrderDerivatives () const override |
| virtual void | enableSecondOrderDerivatives (bool yn) override |
| bool | enableSecondOrderDerivatives () const override |
| double | getValue () const override |
| double | getFirstOrderDerivative (const std::string &variable) const override |
| ValueRef< DataLik > | firstOrderDerivativeNode (const std::string &variable) const |
| double | getSecondOrderDerivative (const std::string &variable) const override |
| double | getSecondOrderDerivative (const std::string &variable1, const std::string &variable2) const override |
| ValueRef< DataLik > | secondOrderDerivativeNode (const std::string &variable1, const std::string &variable2) const |
The likelihood functions. | |
| virtual AlignedLikelihoodCalculation & | alignedLikelihoodCalculation () const =0 |
| virtual std::shared_ptr< AlignedLikelihoodCalculation > | getAlignedLikelihoodCalculation () const =0 |
The data functions | |
| virtual bool | isInitialized () const =0 |
| virtual const Context & | context () const =0 |
| virtual Context & | context ()=0 |
The likelihood functions. | |
| virtual ValueRef< DataLik > | getLikelihoodNode () const =0 |
| double | getLogLikelihood () const |
| Get the logarithm of the likelihood for the whole dataset. More... | |
Retrieve some particular independent parameters subsets. | |
Get the derivates of the LogLikelihood. | |
| virtual ParameterList | getNonDerivableParameters () const =0 |
| virtual ParameterList | getDerivableParameters () const =0 |
| virtual ParameterList | getBranchLengthParameters () const =0 |
| Get the independent branch lengths parameters. More... | |
| virtual ParameterList | getSubstitutionModelParameters () const =0 |
| Get the independent parameters associated to substitution model(s). More... | |
| virtual ParameterList | getRateDistributionParameters () const =0 |
| Get the independent parameters associated to the rate distribution(s). More... | |
| virtual ParameterList | getRootFrequenciesParameters () const =0 |
| Get the independent parameters associated to the root frequencies(s). More... | |
Protected Member Functions | |
| AbstractAlignedPhyloLikelihood (const AbstractAlignedPhyloLikelihood &aasd) | |
| AbstractAlignedPhyloLikelihood & | operator= (const AbstractAlignedPhyloLikelihood &aasd) |
| void | setNumberOfSites (size_t nbSites) |
| virtual ParameterList & | getParameters_ ()=0 |
| Node_DF & | accessVariableNode (const std::string &name) const |
Static Protected Member Functions | |
| static Node_DF & | accessVariableNode (const Parameter ¶m) |
Protected Attributes | |
| size_t | nbSites_ |
| Context & | context_ |
| DataLik | minusLogLik_ |
| the value More... | |
| std::unordered_map< std::string, ValueRef< DataLik > > | firstOrderDerivativeNodes_ |
| For Dataflow computing. More... | |
| std::unordered_map< std::pair< std::string, std::string >, ValueRef< DataLik >, StringPairHash > | secondOrderDerivativeNodes_ |
Definition at line 106 of file AlignedPhyloLikelihood.h.
|
inline |
Definition at line 114 of file AlignedPhyloLikelihood.h.
|
inlineprotected |
Definition at line 120 of file AlignedPhyloLikelihood.h.
|
inlinevirtual |
Definition at line 133 of file AlignedPhyloLikelihood.h.
|
inlinestaticprotectedinherited |
Definition at line 188 of file AbstractPhyloLikelihood.h.
Referenced by bpp::AbstractPhyloLikelihood::accessVariableNode(), bpp::AbstractPhyloLikelihood::firstOrderDerivativeNode(), bpp::OnABranchPhyloLikelihood::firstOrderDerivativeVector(), bpp::OneProcessSequencePhyloLikelihood::firstOrderDerivativeVector(), bpp::SingleProcessPhyloLikelihood::firstOrderDerivativeVector(), bpp::AbstractPhyloLikelihood::secondOrderDerivativeNode(), bpp::OnABranchPhyloLikelihood::secondOrderDerivativeVector(), bpp::OneProcessSequencePhyloLikelihood::secondOrderDerivativeVector(), and bpp::SingleProcessPhyloLikelihood::secondOrderDerivativeVector().
|
inlineprotectedinherited |
Definition at line 193 of file AbstractPhyloLikelihood.h.
References bpp::AbstractPhyloLikelihood::accessVariableNode(), and bpp::SecondOrderDerivable::parameter().
|
pure virtualinherited |
Implemented in bpp::AlignedPhyloLikelihoodAutoCorrelation, bpp::AlignedPhyloLikelihoodProduct, bpp::AlignedPhyloLikelihoodHmm, bpp::AlignedPhyloLikelihoodMixture, bpp::AutoCorrelationProcessPhyloLikelihood, bpp::HmmProcessPhyloLikelihood, bpp::MixtureProcessPhyloLikelihood, bpp::OnABranchPhyloLikelihood, bpp::OneProcessSequencePhyloLikelihood, bpp::PartitionProcessPhyloLikelihood, and bpp::SingleProcessPhyloLikelihood.
Referenced by bpp::AlignedPhyloLikelihoodMixture::AlignedPhyloLikelihoodMixture(), and getLikelihoodForASite().
|
pure virtualinherited |
Implements bpp::PhyloLikelihoodInterface.
Implemented in bpp::AlignedPhyloLikelihoodAutoCorrelation, bpp::AlignedPhyloLikelihoodProduct, bpp::SingleDataPhyloLikelihoodInterface, bpp::AlignedPhyloLikelihoodHmm, bpp::AlignedPhyloLikelihoodMixture, bpp::AutoCorrelationProcessPhyloLikelihood, bpp::HmmProcessPhyloLikelihood, bpp::MixtureProcessPhyloLikelihood, bpp::OnABranchPhyloLikelihood, bpp::OneProcessSequencePhyloLikelihood, bpp::PartitionProcessPhyloLikelihood, bpp::SingleProcessPhyloLikelihood, bpp::AlignedPhyloLikelihoodSetInterface, and bpp::SequencePhyloLikelihoodInterface.
|
pure virtualinherited |
Implemented in bpp::AbstractPhyloLikelihood.
|
inlineoverridevirtualinherited |
Implements bpp::PhyloLikelihoodInterface.
Definition at line 73 of file AbstractPhyloLikelihood.h.
References bpp::AbstractPhyloLikelihood::context_.
Referenced by bpp::AlignedPhyloLikelihoodMixture::AlignedPhyloLikelihoodMixture(), bpp::AutoCorrelationProcessPhyloLikelihood::AutoCorrelationProcessPhyloLikelihood(), bpp::HmmProcessPhyloLikelihood::HmmProcessPhyloLikelihood(), bpp::PartitionProcessPhyloLikelihood::makeLikCal_(), bpp::MixtureProcessPhyloLikelihood::MixtureProcessPhyloLikelihood(), bpp::OneProcessSequencePhyloLikelihood::OneProcessSequencePhyloLikelihood(), and bpp::PartitionProcessPhyloLikelihood::PartitionProcessPhyloLikelihood().
|
inlineoverridevirtualinherited |
Implements bpp::PhyloLikelihoodInterface.
Definition at line 75 of file AbstractPhyloLikelihood.h.
References bpp::AbstractPhyloLikelihood::context_.
|
pure virtualinherited |
Implemented in bpp::AbstractPhyloLikelihood.
|
inlineoverridevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 115 of file AbstractPhyloLikelihood.h.
|
inlineoverridevirtualinherited |
Tell if derivatives must be computed: for Function inheritance.
Implements bpp::SecondOrderDerivable.
Definition at line 113 of file AbstractPhyloLikelihood.h.
|
inlineoverridevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 116 of file AbstractPhyloLikelihood.h.
|
inlineoverridevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 114 of file AbstractPhyloLikelihood.h.
|
inlineinherited |
Definition at line 139 of file AbstractPhyloLikelihood.h.
References bpp::AbstractPhyloLikelihood::accessVariableNode(), bpp::AbstractPhyloLikelihood::context_, bpp::AbstractPhyloLikelihood::firstOrderDerivativeNodes_, and bpp::AbstractPhyloLikelihood::getLikelihoodNode().
Referenced by bpp::AbstractPhyloLikelihood::getFirstOrderDerivative(), and bpp::AbstractPhyloLikelihood::secondOrderDerivativeNode().
|
pure virtualinherited |
Implemented in bpp::AlignedPhyloLikelihoodAutoCorrelation, bpp::AlignedPhyloLikelihoodProduct, bpp::AlignedPhyloLikelihoodHmm, bpp::AlignedPhyloLikelihoodMixture, bpp::AutoCorrelationProcessPhyloLikelihood, bpp::HmmProcessPhyloLikelihood, bpp::MixtureProcessPhyloLikelihood, bpp::OnABranchPhyloLikelihood, bpp::OneProcessSequencePhyloLikelihood, bpp::PartitionProcessPhyloLikelihood, and bpp::SingleProcessPhyloLikelihood.
Referenced by getLikelihoodPerSite(), and getLogLikelihoodForASite().
|
pure virtualinherited |
Get the independent branch lengths parameters.
Implemented in bpp::OnABranchPhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, bpp::AbstractParametrizableSequencePhyloLikelihood, and bpp::SingleProcessPhyloLikelihood.
Referenced by bpp::BppPhylogeneticsApplication::displayParameters().
|
pure virtualinherited |
|
inlineoverridevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 131 of file AbstractPhyloLikelihood.h.
References bpp::convert(), and bpp::AbstractPhyloLikelihood::firstOrderDerivativeNode().
|
pure virtualinherited |
Implemented in bpp::AlignedPhyloLikelihoodAutoCorrelation, bpp::AlignedPhyloLikelihoodProduct, bpp::PhyloLikelihoodFormula, bpp::AlignedPhyloLikelihoodHmm, bpp::AlignedPhyloLikelihoodMixture, bpp::AutoCorrelationProcessPhyloLikelihood, bpp::HmmProcessPhyloLikelihood, bpp::MixtureProcessPhyloLikelihood, bpp::OnABranchPhyloLikelihood, bpp::OneProcessSequencePhyloLikelihood, bpp::PartitionProcessPhyloLikelihood, and bpp::SingleProcessPhyloLikelihood.
Referenced by bpp::AbstractPhyloLikelihood::getLikelihoodNode().
|
inlinevirtual |
Get the likelihood for a site (on uncompressed data)
| site | The site index to analyse. |
Implements bpp::AlignedPhyloLikelihoodInterface.
Definition at line 143 of file AlignedPhyloLikelihood.h.
References bpp::AlignedPhyloLikelihoodInterface::alignedLikelihoodCalculation(), and bpp::AlignedLikelihoodCalculation::getLikelihoodForASite().
|
pure virtualinherited |
Implemented in bpp::AbstractPhyloLikelihood.
|
inlineoverridevirtualinherited |
Implements bpp::PhyloLikelihoodInterface.
Definition at line 100 of file AbstractPhyloLikelihood.h.
References bpp::PhyloLikelihoodInterface::getLikelihoodCalculation().
Referenced by bpp::AbstractPhyloLikelihood::firstOrderDerivativeNode(), and bpp::AbstractPhyloLikelihood::getValue().
|
inlinevirtual |
Get the likelihood for each site.
Implements bpp::AlignedPhyloLikelihoodInterface.
Definition at line 167 of file AlignedPhyloLikelihood.h.
References bpp::AlignedPhyloLikelihoodInterface::getAlignedLikelihoodCalculation().
Referenced by bpp::MixtureProcessPhyloLikelihood::getPosteriorProbabilitiesPerSitePerProcess(), bpp::OneProcessSequencePhyloLikelihood::getPosteriorRatePerSite(), and bpp::SingleProcessPhyloLikelihood::getPosteriorRatePerSite().
|
inlineinherited |
Get the logarithm of the likelihood for the whole dataset.
Definition at line 66 of file PhyloLikelihood.h.
References bpp::SecondOrderDerivable::getValue().
|
inlinevirtual |
Get the log likelihood for a site, and its derivatives.
| site | The site index to analyse. |
Implements bpp::AlignedPhyloLikelihoodInterface.
Definition at line 154 of file AlignedPhyloLikelihood.h.
References bpp::convert(), bpp::AlignedPhyloLikelihoodInterface::getAlignedLikelihoodCalculation(), and getLogLikelihoodForASite().
Referenced by getLogLikelihoodForASite().
|
pure virtualinherited |
|
inlinevirtual |
Get the number of sites in the dataset.
Implements bpp::AlignedPhyloLikelihoodInterface.
Reimplemented in bpp::OnABranchPhyloLikelihood, bpp::PartitionProcessPhyloLikelihood, and bpp::SingleProcessPhyloLikelihood.
Definition at line 135 of file AlignedPhyloLikelihood.h.
References nbSites_.
Referenced by bpp::AbstractAlignedPhyloLikelihoodSet::AbstractAlignedPhyloLikelihoodSet(), bpp::AbstractAlignedPhyloLikelihoodSet::addPhyloLikelihood(), bpp::OneProcessSequencePhyloLikelihood::getClassWithMaxPostProbPerSite(), bpp::MultiProcessSequencePhyloLikelihood::getLikelihoodPerSitePerProcess(), bpp::OneProcessSequencePhyloLikelihood::getPosteriorRatePerSite(), and bpp::OneProcessSequencePhyloLikelihood::getPosteriorStateFrequencies().
|
pure virtualinherited |
Get the independent parameters associated to the rate distribution(s).
Implemented in bpp::OnABranchPhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, bpp::AbstractParametrizableSequencePhyloLikelihood, and bpp::SingleProcessPhyloLikelihood.
|
pure virtualinherited |
Get the independent parameters associated to the root frequencies(s).
Implemented in bpp::OnABranchPhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, bpp::AbstractParametrizableSequencePhyloLikelihood, and bpp::SingleProcessPhyloLikelihood.
|
inlineoverridevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 155 of file AbstractPhyloLikelihood.h.
References bpp::AbstractPhyloLikelihood::getSecondOrderDerivative().
Referenced by bpp::AbstractPhyloLikelihood::getSecondOrderDerivative().
|
inlineoverridevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 160 of file AbstractPhyloLikelihood.h.
References bpp::convert(), and bpp::AbstractPhyloLikelihood::secondOrderDerivativeNode().
|
pure virtualinherited |
Get the independent parameters associated to substitution model(s).
Implemented in bpp::OnABranchPhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, bpp::AbstractParametrizableSequencePhyloLikelihood, and bpp::SingleProcessPhyloLikelihood.
|
inlineoverridevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 124 of file AbstractPhyloLikelihood.h.
References bpp::convert(), bpp::AbstractPhyloLikelihood::getLikelihoodNode(), and bpp::AbstractPhyloLikelihood::minusLogLik_.
|
pure virtualinherited |
Implemented in bpp::AbstractPhyloLikelihood, bpp::MultiProcessSequencePhyloLikelihood, bpp::OnABranchPhyloLikelihood, bpp::OneProcessSequencePhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, and bpp::SingleProcessPhyloLikelihood.
|
inlineoverridevirtualinherited |
Sets the computeLikelihoods_ to true.
Implements bpp::PhyloLikelihoodInterface.
Reimplemented in bpp::MultiProcessSequencePhyloLikelihood, bpp::OnABranchPhyloLikelihood, bpp::OneProcessSequencePhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, and bpp::SingleProcessPhyloLikelihood.
Definition at line 81 of file AbstractPhyloLikelihood.h.
|
pure virtualinherited |
Implemented in bpp::AlignedPhyloLikelihoodAutoCorrelation, bpp::AlignedPhyloLikelihoodProduct, bpp::PhyloLikelihoodFormula, bpp::AlignedPhyloLikelihoodHmm, bpp::AlignedPhyloLikelihoodMixture, bpp::AutoCorrelationProcessPhyloLikelihood, bpp::HmmProcessPhyloLikelihood, bpp::MixtureProcessPhyloLikelihood, bpp::OnABranchPhyloLikelihood, bpp::OneProcessSequencePhyloLikelihood, bpp::PartitionProcessPhyloLikelihood, and bpp::SingleProcessPhyloLikelihood.
|
inlineprotected |
Definition at line 125 of file AlignedPhyloLikelihood.h.
References nbSites_, and bpp::AbstractPhyloLikelihood::operator=().
Referenced by bpp::AbstractAlignedPhyloLikelihoodSet::operator=(), and bpp::AbstractSingleDataPhyloLikelihood::operator=().
|
inlineinherited |
Definition at line 168 of file AbstractPhyloLikelihood.h.
References bpp::AbstractPhyloLikelihood::accessVariableNode(), bpp::AbstractPhyloLikelihood::context_, bpp::AbstractPhyloLikelihood::firstOrderDerivativeNode(), and bpp::AbstractPhyloLikelihood::secondOrderDerivativeNodes_.
Referenced by bpp::AbstractPhyloLikelihood::getSecondOrderDerivative().
|
inlineprotected |
Definition at line 173 of file AlignedPhyloLikelihood.h.
References nbSites_.
Referenced by bpp::AbstractAlignedPhyloLikelihoodSet::AbstractAlignedPhyloLikelihoodSet(), bpp::AbstractAlignedPhyloLikelihoodSet::addPhyloLikelihood(), and bpp::AbstractSingleDataPhyloLikelihood::setData().
|
inlineoverridevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 95 of file AbstractPhyloLikelihood.h.
References bpp::SecondOrderDerivable::setParametersValues().
|
inlineinherited |
Share Parameters, that are DF_parameters.
Definition at line 90 of file AbstractPhyloLikelihood.h.
References bpp::SecondOrderDerivable::getParameters_(), and bpp::ParameterList::shareParameters().
Referenced by bpp::AbstractPhyloLikelihood::AbstractPhyloLikelihood(), and bpp::AbstractPhyloLikelihood::operator=().
|
protectedinherited |
Definition at line 34 of file AbstractPhyloLikelihood.h.
Referenced by bpp::AbstractPhyloLikelihoodSet::addPhyloLikelihood(), bpp::AbstractPhyloLikelihood::context(), bpp::AbstractPhyloLikelihood::firstOrderDerivativeNode(), bpp::OnABranchPhyloLikelihood::firstOrderDerivativeVector(), bpp::OneProcessSequencePhyloLikelihood::firstOrderDerivativeVector(), bpp::SingleProcessPhyloLikelihood::firstOrderDerivativeVector(), bpp::PhyloLikelihoodFormula::makeLikelihoodsFromOperator(), bpp::AbstractPhyloLikelihood::operator=(), bpp::AbstractPhyloLikelihood::secondOrderDerivativeNode(), bpp::OnABranchPhyloLikelihood::secondOrderDerivativeVector(), bpp::OneProcessSequencePhyloLikelihood::secondOrderDerivativeVector(), and bpp::SingleProcessPhyloLikelihood::secondOrderDerivativeVector().
|
mutableprotectedinherited |
For Dataflow computing.
Definition at line 44 of file AbstractPhyloLikelihood.h.
Referenced by bpp::AbstractPhyloLikelihood::firstOrderDerivativeNode().
|
mutableprotectedinherited |
the value
Definition at line 39 of file AbstractPhyloLikelihood.h.
Referenced by bpp::AbstractPhyloLikelihood::getValue(), and bpp::AbstractPhyloLikelihood::operator=().
|
protected |
Definition at line 111 of file AlignedPhyloLikelihood.h.
Referenced by bpp::AlignedPhyloLikelihoodMixture::AlignedPhyloLikelihoodMixture(), getNumberOfSites(), bpp::MixtureProcessPhyloLikelihood::getPosteriorProbabilitiesPerSitePerProcess(), operator=(), and setNumberOfSites().
|
mutableprotectedinherited |
Definition at line 48 of file AbstractPhyloLikelihood.h.
Referenced by bpp::AbstractPhyloLikelihood::secondOrderDerivativeNode().