bpp-phyl3  3.0.0
bpp::PhyloLikelihoodSetInterface Class Referenceabstract

The PhyloLikelihoodSet interface, to manage a subset of PhyloLikelihoods from a given PhyloLikelihoodContainer. More...

#include <Bpp/Phyl/Likelihood/PhyloLikelihoods/PhyloLikelihoodSet.h>

+ Inheritance diagram for bpp::PhyloLikelihoodSetInterface:
+ Collaboration diagram for bpp::PhyloLikelihoodSetInterface:

Public Member Functions

virtual PhyloLikelihoodSetInterfaceclone () const =0
 
virtual std::shared_ptr< PhyloLikelihoodContainergetPhyloContainer ()=0
 
virtual std::shared_ptr< const PhyloLikelihoodContainergetPhyloContainer () const =0
 
virtual const std::vector< size_t > & getNumbersOfPhyloLikelihoods () const =0
 
virtual bool addPhyloLikelihood (size_t nPhyl, const std::string &suff="")=0
 adds a PhyloLikelihood already stored in the PhyloLikelihoodContainer, iff it is an AbstractPhyloLikelihood. More...
 
virtual LikelihoodCalculationlikelihoodCalculation () const =0
 
virtual std::shared_ptr< LikelihoodCalculationgetLikelihoodCalculation () 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 &parameters)
 
virtual double d2f (const std::string &variable1, const std::string &variable2, const ParameterList &parameters)
 
virtual void enableFirstOrderDerivatives (bool yn)=0
 
virtual bool enableFirstOrderDerivatives () const=0
 
virtual double getFirstOrderDerivative (const std::string &variable) const=0
 
virtual double df (const std::string &variable, const ParameterList &parameters)
 
virtual void setParameters (const ParameterList &parameters)=0
 
virtual double getValue () const=0
 
virtual double f (const ParameterList &parameters)
 
virtual bool hasParameter (const std::string &name) const=0
 
virtual const ParameterListgetParameters () const=0
 
virtual const Parameterparameter (const std::string &name) const=0
 
virtual double getParameterValue (const std::string &name) const=0
 
virtual void setAllParametersValues (const ParameterList &parameters)=0
 
virtual void setParameterValue (const std::string &name, double value)=0
 
virtual void setParametersValues (const ParameterList &parameters)=0
 
virtual bool matchParametersValues (const ParameterList &parameters)=0
 
virtual 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 PhyloLikelihood storage.
virtual bool hasPhyloLikelihood (size_t nPhyl)=0
 
virtual std::shared_ptr< const PhyloLikelihoodInterfacegetPhyloLikelihood (size_t nPhyl) const =0
 
virtual std::shared_ptr< PhyloLikelihoodInterfacegetPhyloLikelihood (size_t nPhyl)=0
 
The data functions
virtual bool isInitialized () const =0
 
virtual const Contextcontext () const =0
 
virtual Contextcontext ()=0
 
The likelihood functions.
virtual ValueRef< DataLikgetLikelihoodNode () 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

virtual ParameterListgetParameters_ ()=0
 

Detailed Description

The PhyloLikelihoodSet interface, to manage a subset of PhyloLikelihoods from a given PhyloLikelihoodContainer.

Definition at line 20 of file PhyloLikelihoodSet.h.

Member Function Documentation

◆ addPhyloLikelihood()

virtual bool bpp::PhyloLikelihoodSetInterface::addPhyloLikelihood ( size_t  nPhyl,
const std::string &  suff = "" 
)
pure virtual

adds a PhyloLikelihood already stored in the PhyloLikelihoodContainer, iff it is an AbstractPhyloLikelihood.

Parameters
nPhylnumber of the phylolikelihood
sufffor parameters names if use specific parameters names
Returns
if the PhyloLikelihood has been added.

Implemented in bpp::AbstractPhyloLikelihoodSet, and bpp::AbstractAlignedPhyloLikelihoodSet.

◆ clone()

◆ context() [1/2]

virtual const Context& bpp::PhyloLikelihoodInterface::context ( ) const
pure virtualinherited

◆ context() [2/2]

virtual Context& bpp::PhyloLikelihoodInterface::context ( )
pure virtualinherited

◆ getBranchLengthParameters()

virtual ParameterList bpp::PhyloLikelihoodInterface::getBranchLengthParameters ( ) const
pure virtualinherited

◆ getDerivableParameters()

virtual ParameterList bpp::PhyloLikelihoodInterface::getDerivableParameters ( ) const
pure virtualinherited

◆ getLikelihoodCalculation()

◆ getLikelihoodNode()

virtual ValueRef<DataLik> bpp::PhyloLikelihoodInterface::getLikelihoodNode ( ) const
pure virtualinherited
Returns
the LikDF node where the Likelihood is computed.

Implemented in bpp::AbstractPhyloLikelihood.

◆ getLogLikelihood()

double bpp::PhyloLikelihoodInterface::getLogLikelihood ( ) const
inlineinherited

Get the logarithm of the likelihood for the whole dataset.

Returns
The logarithm of the likelihood of the dataset.

Definition at line 66 of file PhyloLikelihood.h.

References bpp::SecondOrderDerivable::getValue().

◆ getNonDerivableParameters()

virtual ParameterList bpp::PhyloLikelihoodInterface::getNonDerivableParameters ( ) const
pure virtualinherited

◆ getNumbersOfPhyloLikelihoods()

virtual const std::vector<size_t>& bpp::PhyloLikelihoodSetInterface::getNumbersOfPhyloLikelihoods ( ) const
pure virtual

◆ getPhyloContainer() [1/2]

virtual std::shared_ptr<const PhyloLikelihoodContainer> bpp::PhyloLikelihoodSetInterface::getPhyloContainer ( ) const
pure virtual

◆ getPhyloContainer() [2/2]

virtual std::shared_ptr<PhyloLikelihoodContainer> bpp::PhyloLikelihoodSetInterface::getPhyloContainer ( )
pure virtual

◆ getPhyloLikelihood() [1/2]

virtual std::shared_ptr<const PhyloLikelihoodInterface> bpp::PhyloLikelihoodSetInterface::getPhyloLikelihood ( size_t  nPhyl) const
pure virtual

◆ getPhyloLikelihood() [2/2]

virtual std::shared_ptr<PhyloLikelihoodInterface> bpp::PhyloLikelihoodSetInterface::getPhyloLikelihood ( size_t  nPhyl)
pure virtual

◆ getRateDistributionParameters()

virtual ParameterList bpp::PhyloLikelihoodInterface::getRateDistributionParameters ( ) const
pure virtualinherited

Get the independent parameters associated to the rate distribution(s).

Returns
A ParameterList.

Implemented in bpp::SingleProcessPhyloLikelihood, bpp::AbstractParametrizableSequencePhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, and bpp::OnABranchPhyloLikelihood.

◆ getRootFrequenciesParameters()

virtual ParameterList bpp::PhyloLikelihoodInterface::getRootFrequenciesParameters ( ) const
pure virtualinherited

Get the independent parameters associated to the root frequencies(s).

Returns
A ParameterList.

Implemented in bpp::SingleProcessPhyloLikelihood, bpp::AbstractParametrizableSequencePhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, and bpp::OnABranchPhyloLikelihood.

◆ getSubstitutionModelParameters()

virtual ParameterList bpp::PhyloLikelihoodInterface::getSubstitutionModelParameters ( ) const
pure virtualinherited

Get the independent parameters associated to substitution model(s).

Returns
A ParameterList.

Implemented in bpp::SingleProcessPhyloLikelihood, bpp::AbstractParametrizableSequencePhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, and bpp::OnABranchPhyloLikelihood.

◆ hasPhyloLikelihood()

virtual bool bpp::PhyloLikelihoodSetInterface::hasPhyloLikelihood ( size_t  nPhyl)
pure virtual

◆ isInitialized()

virtual bool bpp::PhyloLikelihoodInterface::isInitialized ( ) const
pure virtualinherited

◆ likelihoodCalculation()


The documentation for this class was generated from the following file: