|
bpp-phyl3 3.0.0
|
#include <Bpp/Phyl/Likelihood/PhyloLikelihoods/AbstractPhyloLikelihood.h>
Inheritance diagram for bpp::AbstractPhyloLikelihood:
Collaboration diagram for bpp::AbstractPhyloLikelihood:Classes | |
| struct | StringPairHash |
Public Member Functions | |
| AbstractPhyloLikelihood (Context &context) | |
| AbstractPhyloLikelihood (const AbstractPhyloLikelihood &apl) | |
| AbstractPhyloLikelihood & | operator= (const AbstractPhyloLikelihood &apl) |
| virtual | ~AbstractPhyloLikelihood () |
| 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... | |
| virtual void | enableSecondOrderDerivatives (bool yn) override |
| bool | enableFirstOrderDerivatives () const 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 |
| PhyloLikelihoodInterface * | clone () const =0 |
| virtual LikelihoodCalculation & | likelihoodCalculation () const =0 |
| virtual std::shared_ptr< LikelihoodCalculation > | getLikelihoodCalculation () 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 double | df (const std::string &variable, const ParameterList ¶meters) |
| 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 |
The likelihood functions. | |
| 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 | |
| Node_DF & | accessVariableNode (const std::string &name) const |
| virtual ParameterList & | getParameters_ ()=0 |
Static Protected Member Functions | |
| static Node_DF & | accessVariableNode (const Parameter ¶m) |
Protected Attributes | |
| 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 18 of file AbstractPhyloLikelihood.h.
|
inline |
Definition at line 51 of file AbstractPhyloLikelihood.h.
|
inline |
Definition at line 56 of file AbstractPhyloLikelihood.h.
References bpp::SecondOrderDerivable::getParameters(), and shareParameters().
|
inlinevirtual |
Definition at line 71 of file AbstractPhyloLikelihood.h.
|
inlinestaticprotected |
Definition at line 188 of file AbstractPhyloLikelihood.h.
Referenced by accessVariableNode(), firstOrderDerivativeNode(), bpp::OnABranchPhyloLikelihood::firstOrderDerivativeVector(), bpp::OneProcessSequencePhyloLikelihood::firstOrderDerivativeVector(), bpp::SingleProcessPhyloLikelihood::firstOrderDerivativeVector(), secondOrderDerivativeNode(), bpp::OnABranchPhyloLikelihood::secondOrderDerivativeVector(), bpp::OneProcessSequencePhyloLikelihood::secondOrderDerivativeVector(), and bpp::SingleProcessPhyloLikelihood::secondOrderDerivativeVector().
|
inlineprotected |
Definition at line 193 of file AbstractPhyloLikelihood.h.
References accessVariableNode(), and bpp::SecondOrderDerivable::parameter().
|
pure virtualinherited |
Implements bpp::SecondOrderDerivable.
Implemented in bpp::AlignedPhyloLikelihoodAutoCorrelation, bpp::AlignedPhyloLikelihoodProduct, bpp::PhyloLikelihoodFormula, bpp::AlignedPhyloLikelihoodInterface, bpp::PhyloLikelihoodSetInterface, 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.
|
inlineoverridevirtual |
Implements bpp::PhyloLikelihoodInterface.
Definition at line 73 of file AbstractPhyloLikelihood.h.
References 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().
|
inlineoverridevirtual |
Implements bpp::PhyloLikelihoodInterface.
Definition at line 75 of file AbstractPhyloLikelihood.h.
References context_.
|
inlineoverridevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 115 of file AbstractPhyloLikelihood.h.
|
inlineoverridevirtual |
Tell if derivatives must be computed: for Function inheritance.
Implements bpp::SecondOrderDerivable.
Definition at line 113 of file AbstractPhyloLikelihood.h.
|
inlineoverridevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 116 of file AbstractPhyloLikelihood.h.
|
inlineoverridevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 114 of file AbstractPhyloLikelihood.h.
|
inline |
Definition at line 139 of file AbstractPhyloLikelihood.h.
References accessVariableNode(), context_, firstOrderDerivativeNodes_, and getLikelihoodNode().
Referenced by getFirstOrderDerivative(), and secondOrderDerivativeNode().
|
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 |
|
inlineoverridevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 131 of file AbstractPhyloLikelihood.h.
References bpp::convert(), and 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 getLikelihoodNode().
Implements bpp::PhyloLikelihoodInterface.
Definition at line 100 of file AbstractPhyloLikelihood.h.
References bpp::PhyloLikelihoodInterface::getLikelihoodCalculation().
Referenced by firstOrderDerivativeNode(), and getValue().
|
inlineinherited |
Get the logarithm of the likelihood for the whole dataset.
Definition at line 66 of file PhyloLikelihood.h.
References bpp::SecondOrderDerivable::getValue().
|
pure virtualinherited |
|
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.
|
inlineoverridevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 155 of file AbstractPhyloLikelihood.h.
References getSecondOrderDerivative().
Referenced by getSecondOrderDerivative().
|
inlineoverridevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 160 of file AbstractPhyloLikelihood.h.
References bpp::convert(), and secondOrderDerivativeNode().
|
pure virtualinherited |
Get the independent parameters associated to substitution model(s).
Implemented in bpp::OnABranchPhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, bpp::AbstractParametrizableSequencePhyloLikelihood, and bpp::SingleProcessPhyloLikelihood.
|
inlineoverridevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 124 of file AbstractPhyloLikelihood.h.
References bpp::convert(), getLikelihoodNode(), and minusLogLik_.
|
inlineoverridevirtual |
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.
|
inline |
Definition at line 63 of file AbstractPhyloLikelihood.h.
References context_, bpp::SecondOrderDerivable::getParameters(), minusLogLik_, and shareParameters().
Referenced by bpp::AbstractAlignedPhyloLikelihood::operator=(), and bpp::AbstractPhyloLikelihoodSet::operator=().
|
inline |
Definition at line 168 of file AbstractPhyloLikelihood.h.
References accessVariableNode(), context_, firstOrderDerivativeNode(), and secondOrderDerivativeNodes_.
Referenced by getSecondOrderDerivative().
|
inlineoverridevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 95 of file AbstractPhyloLikelihood.h.
References bpp::SecondOrderDerivable::setParametersValues().
|
inline |
Share Parameters, that are DF_parameters.
Definition at line 90 of file AbstractPhyloLikelihood.h.
References bpp::SecondOrderDerivable::getParameters_(), and bpp::ParameterList::shareParameters().
Referenced by AbstractPhyloLikelihood(), and operator=().
|
protected |
Definition at line 34 of file AbstractPhyloLikelihood.h.
Referenced by bpp::AbstractPhyloLikelihoodSet::addPhyloLikelihood(), context(), firstOrderDerivativeNode(), bpp::OnABranchPhyloLikelihood::firstOrderDerivativeVector(), bpp::OneProcessSequencePhyloLikelihood::firstOrderDerivativeVector(), bpp::SingleProcessPhyloLikelihood::firstOrderDerivativeVector(), bpp::PhyloLikelihoodFormula::makeLikelihoodsFromOperator(), operator=(), secondOrderDerivativeNode(), bpp::OnABranchPhyloLikelihood::secondOrderDerivativeVector(), bpp::OneProcessSequencePhyloLikelihood::secondOrderDerivativeVector(), and bpp::SingleProcessPhyloLikelihood::secondOrderDerivativeVector().
|
mutableprotected |
For Dataflow computing.
Definition at line 44 of file AbstractPhyloLikelihood.h.
Referenced by firstOrderDerivativeNode().
|
mutableprotected |
the value
Definition at line 39 of file AbstractPhyloLikelihood.h.
Referenced by getValue(), and operator=().
|
mutableprotected |
Definition at line 48 of file AbstractPhyloLikelihood.h.
Referenced by secondOrderDerivativeNode().