bpp-phyl3  3.0.0
bpp::GlobalClockTreeLikelihoodFunctionWrapper Class Referenceabstract

#include <Bpp/Phyl/Legacy/Likelihood/GlobalClockTreeLikelihoodFunctionWrapper.h>

+ Inheritance diagram for bpp::GlobalClockTreeLikelihoodFunctionWrapper:
+ Collaboration diagram for bpp::GlobalClockTreeLikelihoodFunctionWrapper:

Public Member Functions

 GlobalClockTreeLikelihoodFunctionWrapper (std::shared_ptr< TreeLikelihoodInterface > tl)
 
 GlobalClockTreeLikelihoodFunctionWrapper (const GlobalClockTreeLikelihoodFunctionWrapper &gctlfw)
 
GlobalClockTreeLikelihoodFunctionWrapperoperator= (const GlobalClockTreeLikelihoodFunctionWrapper &gctlfw)
 
GlobalClockTreeLikelihoodFunctionWrapperclone () const
 
void setParameters (const ParameterList &pl)
 
double getValue () const
 
void fireParameterChanged (const bpp::ParameterList &pl)
 
void enableSecondOrderDerivatives (bool yn)
 
bool enableSecondOrderDerivatives () const
 
void enableFirstOrderDerivatives (bool yn)
 
bool enableFirstOrderDerivatives () const
 
double getSecondOrderDerivative (const std::string &variable1, const std::string &variable2) const
 
double getSecondOrderDerivative (const std::string &variable) const
 
double getFirstOrderDerivative (const std::string &variable) const
 
ParameterList getHeightParameters () const
 
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 double df (const std::string &variable, const ParameterList &parameters)
 
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
 
bool hasParameter (const std::string &name) const override
 
const ParameterListgetParameters () const override
 
const Parameterparameter (const std::string &name) const override
 
const std::shared_ptr< Parameter > & getParameter (const std::string &name) const
 
double getParameterValue (const std::string &name) const override
 
void setAllParametersValues (const ParameterList &parameters) override
 
void setParameterValue (const std::string &name, double value) override
 
void setParametersValues (const ParameterList &parameters) override
 
bool matchParametersValues (const ParameterList &parameters) 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
 

Protected Member Functions

virtual ParameterListgetParameters_ ()=0
 
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 &parameters)
 
virtual void shareParameter_ (const std::shared_ptr< Parameter > &parameter)
 
virtual void shareParameters_ (const ParameterList &parameters)
 
virtual void includeParameters_ (const ParameterList &parameters)
 
virtual void deleteParameter_ (size_t index)
 
virtual void deleteParameter_ (std::string &name)
 
virtual void deleteParameters_ (const std::vector< std::string > &names)
 
void resetParameters_ ()
 
ParametergetParameter_ (const std::string &name)
 
ParametergetParameter_ (size_t index)
 
const ParametergetParameter_ (size_t index) const
 
ParametergetParameterWithNamespace_ (const std::string &name)
 
const ParametergetParameterWithNamespace_ (const std::string &name) const
 
ParameterListgetParameters_ () override
 

Private Member Functions

void initParameters_ ()
 
void computeBranchLengthsFromHeights_ (const Node *node, double height, ParameterList &brlenPl)
 

Private Attributes

std::shared_ptr< TreeLikelihoodInterfacetl_
 
ParameterList parameters_
 
std::string prefix_
 

Detailed Description

Definition at line 13 of file GlobalClockTreeLikelihoodFunctionWrapper.h.

Constructor & Destructor Documentation

◆ GlobalClockTreeLikelihoodFunctionWrapper() [1/2]

bpp::GlobalClockTreeLikelihoodFunctionWrapper::GlobalClockTreeLikelihoodFunctionWrapper ( std::shared_ptr< TreeLikelihoodInterface tl)
inline

Definition at line 21 of file GlobalClockTreeLikelihoodFunctionWrapper.h.

References initParameters_().

Referenced by clone().

◆ GlobalClockTreeLikelihoodFunctionWrapper() [2/2]

bpp::GlobalClockTreeLikelihoodFunctionWrapper::GlobalClockTreeLikelihoodFunctionWrapper ( const GlobalClockTreeLikelihoodFunctionWrapper gctlfw)
inline

Definition at line 28 of file GlobalClockTreeLikelihoodFunctionWrapper.h.

Member Function Documentation

◆ clone()

GlobalClockTreeLikelihoodFunctionWrapper* bpp::GlobalClockTreeLikelihoodFunctionWrapper::clone ( ) const
inlinevirtual

◆ computeBranchLengthsFromHeights_()

void GlobalClockTreeLikelihoodFunctionWrapper::computeBranchLengthsFromHeights_ ( const Node node,
double  height,
ParameterList brlenPl 
)
private

◆ enableFirstOrderDerivatives() [1/2]

bool bpp::GlobalClockTreeLikelihoodFunctionWrapper::enableFirstOrderDerivatives ( ) const
inlinevirtual

Implements bpp::SecondOrderDerivable.

Definition at line 55 of file GlobalClockTreeLikelihoodFunctionWrapper.h.

References tl_.

◆ enableFirstOrderDerivatives() [2/2]

void bpp::GlobalClockTreeLikelihoodFunctionWrapper::enableFirstOrderDerivatives ( bool  yn)
inlinevirtual

Implements bpp::SecondOrderDerivable.

Definition at line 54 of file GlobalClockTreeLikelihoodFunctionWrapper.h.

References tl_.

◆ enableSecondOrderDerivatives() [1/2]

bool bpp::GlobalClockTreeLikelihoodFunctionWrapper::enableSecondOrderDerivatives ( ) const
inlinevirtual

Implements bpp::SecondOrderDerivable.

Definition at line 53 of file GlobalClockTreeLikelihoodFunctionWrapper.h.

References tl_.

◆ enableSecondOrderDerivatives() [2/2]

void bpp::GlobalClockTreeLikelihoodFunctionWrapper::enableSecondOrderDerivatives ( bool  yn)
inlinevirtual

Implements bpp::SecondOrderDerivable.

Definition at line 52 of file GlobalClockTreeLikelihoodFunctionWrapper.h.

References tl_.

◆ fireParameterChanged()

◆ getFirstOrderDerivative()

double bpp::GlobalClockTreeLikelihoodFunctionWrapper::getFirstOrderDerivative ( const std::string &  variable) const
inlinevirtual

Implements bpp::SecondOrderDerivable.

Definition at line 58 of file GlobalClockTreeLikelihoodFunctionWrapper.h.

References tl_.

◆ getHeightParameters()

◆ getSecondOrderDerivative() [1/2]

double bpp::GlobalClockTreeLikelihoodFunctionWrapper::getSecondOrderDerivative ( const std::string &  variable) const
inlinevirtual

Implements bpp::SecondOrderDerivable.

Definition at line 57 of file GlobalClockTreeLikelihoodFunctionWrapper.h.

References tl_.

◆ getSecondOrderDerivative() [2/2]

double bpp::GlobalClockTreeLikelihoodFunctionWrapper::getSecondOrderDerivative ( const std::string &  variable1,
const std::string &  variable2 
) const
inlinevirtual

Implements bpp::SecondOrderDerivable.

Definition at line 56 of file GlobalClockTreeLikelihoodFunctionWrapper.h.

References tl_.

◆ getValue()

double bpp::GlobalClockTreeLikelihoodFunctionWrapper::getValue ( ) const
inlinevirtual

Implements bpp::SecondOrderDerivable.

Definition at line 48 of file GlobalClockTreeLikelihoodFunctionWrapper.h.

References tl_.

Referenced by fireParameterChanged().

◆ initParameters_()

◆ operator=()

GlobalClockTreeLikelihoodFunctionWrapper& bpp::GlobalClockTreeLikelihoodFunctionWrapper::operator= ( const GlobalClockTreeLikelihoodFunctionWrapper gctlfw)
inline

Definition at line 32 of file GlobalClockTreeLikelihoodFunctionWrapper.h.

References tl_.

◆ setParameters()

void bpp::GlobalClockTreeLikelihoodFunctionWrapper::setParameters ( const ParameterList pl)
inlinevirtual

Member Data Documentation

◆ tl_


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