bpp-phyl3
3.0.0
|
#include <Bpp/Phyl/Legacy/Likelihood/GlobalClockTreeLikelihoodFunctionWrapper.h>
Public Member Functions | |
GlobalClockTreeLikelihoodFunctionWrapper (std::shared_ptr< TreeLikelihoodInterface > tl) | |
GlobalClockTreeLikelihoodFunctionWrapper (const GlobalClockTreeLikelihoodFunctionWrapper &gctlfw) | |
GlobalClockTreeLikelihoodFunctionWrapper & | operator= (const GlobalClockTreeLikelihoodFunctionWrapper &gctlfw) |
GlobalClockTreeLikelihoodFunctionWrapper * | clone () 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 ¶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 |
bool | hasParameter (const std::string &name) const override |
const ParameterList & | getParameters () const override |
const Parameter & | parameter (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 ¶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 |
Protected Member Functions | |
virtual ParameterList & | getParameters_ ()=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 ¶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 |
ParameterList & | getParameters_ () override |
Private Member Functions | |
void | initParameters_ () |
void | computeBranchLengthsFromHeights_ (const Node *node, double height, ParameterList &brlenPl) |
Private Attributes | |
std::shared_ptr< TreeLikelihoodInterface > | tl_ |
ParameterList | parameters_ |
std::string | prefix_ |
Definition at line 13 of file GlobalClockTreeLikelihoodFunctionWrapper.h.
|
inline |
Definition at line 21 of file GlobalClockTreeLikelihoodFunctionWrapper.h.
References initParameters_().
Referenced by clone().
|
inline |
Definition at line 28 of file GlobalClockTreeLikelihoodFunctionWrapper.h.
|
inlinevirtual |
Implements bpp::AbstractParametrizable.
Definition at line 39 of file GlobalClockTreeLikelihoodFunctionWrapper.h.
References GlobalClockTreeLikelihoodFunctionWrapper().
Referenced by initParameters_().
|
private |
Definition at line 73 of file GlobalClockTreeLikelihoodFunctionWrapper.cpp.
References bpp::ParameterList::addParameter(), bpp::Node::getId(), bpp::Node::getNumberOfSons(), bpp::Node::getSon(), bpp::Parameter::getValue(), bpp::Node::isLeaf(), bpp::AbstractParametrizable::parameter(), and bpp::TextTools::toString().
Referenced by fireParameterChanged().
|
inlinevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 55 of file GlobalClockTreeLikelihoodFunctionWrapper.h.
References tl_.
|
inlinevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 54 of file GlobalClockTreeLikelihoodFunctionWrapper.h.
References tl_.
|
inlinevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 53 of file GlobalClockTreeLikelihoodFunctionWrapper.h.
References tl_.
|
inlinevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 52 of file GlobalClockTreeLikelihoodFunctionWrapper.h.
References tl_.
|
virtual |
Reimplemented from bpp::AbstractParametrizable.
Definition at line 9 of file GlobalClockTreeLikelihoodFunctionWrapper.cpp.
References bpp::ParameterList::addParameter(), computeBranchLengthsFromHeights_(), bpp::TreeTemplate< N >::getRootNode(), getValue(), bpp::AbstractParametrizable::parameter(), bpp::ParameterList::size(), and tl_.
Referenced by initParameters_().
|
inlinevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 58 of file GlobalClockTreeLikelihoodFunctionWrapper.h.
References tl_.
ParameterList GlobalClockTreeLikelihoodFunctionWrapper::getHeightParameters | ( | ) | const |
Definition at line 29 of file GlobalClockTreeLikelihoodFunctionWrapper.cpp.
References bpp::ParameterList::addParameter(), bpp::Parameter::getName(), bpp::AbstractParametrizable::getNumberOfParameters(), and bpp::AbstractParametrizable::getParameter_().
|
inlinevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 57 of file GlobalClockTreeLikelihoodFunctionWrapper.h.
References tl_.
|
inlinevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 56 of file GlobalClockTreeLikelihoodFunctionWrapper.h.
References tl_.
|
inlinevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 48 of file GlobalClockTreeLikelihoodFunctionWrapper.h.
References tl_.
Referenced by fireParameterChanged().
|
private |
Definition at line 42 of file GlobalClockTreeLikelihoodFunctionWrapper.cpp.
References bpp::AbstractParametrizable::addParameter_(), clone(), fireParameterChanged(), bpp::TreeTemplateTools::getHeights(), bpp::AbstractParametrizable::getParameters(), bpp::TreeTemplate< N >::getRootNode(), bpp::TreeTemplateTools::isMultifurcating(), bpp::TreeTemplate< N >::isRooted(), bpp::Parameter::PROP_CONSTRAINT_IN, bpp::Parameter::R_PLUS_STAR, bpp::ParameterList::size(), tl_, and bpp::TextTools::toString().
Referenced by GlobalClockTreeLikelihoodFunctionWrapper().
|
inline |
Definition at line 32 of file GlobalClockTreeLikelihoodFunctionWrapper.h.
References tl_.
|
inlinevirtual |
Implements bpp::SecondOrderDerivable.
Definition at line 42 of file GlobalClockTreeLikelihoodFunctionWrapper.h.
References bpp::AbstractParametrizable::matchParametersValues().
|
private |
Definition at line 18 of file GlobalClockTreeLikelihoodFunctionWrapper.h.
Referenced by enableFirstOrderDerivatives(), enableSecondOrderDerivatives(), fireParameterChanged(), getFirstOrderDerivative(), getSecondOrderDerivative(), getValue(), initParameters_(), and operator=().