bpp-phyl3
3.0.0
|
Compute likelihood for a 4-tree. More...
#include <Bpp/Phyl/Legacy/Likelihood/NNIHomogeneousTreeLikelihood.h>
Public Member Functions | |
BranchLikelihood (const std::vector< unsigned int > &weights) | |
BranchLikelihood (const BranchLikelihood &bl) | |
BranchLikelihood & | operator= (const BranchLikelihood &bl) |
virtual | ~BranchLikelihood () |
BranchLikelihood * | clone () const |
void | initModel (std::shared_ptr< const TransitionModelInterface > model, std::shared_ptr< const DiscreteDistributionInterface > rDist) |
void | initLikelihoods (const VVVdouble *array1, const VVVdouble *array2) |
void | resetLikelihoods () |
void | setParameters (const ParameterList ¶meters) |
double | getValue () const |
void | fireParameterChanged (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 | |
void | computeAllTransitionProbabilities () |
void | computeLogLikelihood () |
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 |
Protected Attributes | |
const VVVdouble * | array1_ |
const VVVdouble * | array2_ |
std::shared_ptr< const TransitionModelInterface > | model_ |
std::shared_ptr< const DiscreteDistributionInterface > | rDist_ |
size_t | nbStates_ |
size_t | nbClasses_ |
VVVdouble | pxy_ |
double | lnL_ |
std::vector< unsigned int > | weights_ |
Private Attributes | |
ParameterList | parameters_ |
std::string | prefix_ |
Compute likelihood for a 4-tree.
This class is used internally by DRHomogeneousTreeLikelihood to test NNI movements. This function needs:
Definition at line 27 of file NNIHomogeneousTreeLikelihood.h.
|
inline |
Definition at line 41 of file NNIHomogeneousTreeLikelihood.h.
References bpp::AbstractParametrizable::addParameter_().
Referenced by clone().
|
inline |
Definition at line 56 of file NNIHomogeneousTreeLikelihood.h.
|
inlinevirtual |
Definition at line 84 of file NNIHomogeneousTreeLikelihood.h.
|
inlinevirtual |
Implements bpp::AbstractParametrizable.
Definition at line 86 of file NNIHomogeneousTreeLikelihood.h.
References BranchLikelihood().
|
protected |
Definition at line 39 of file NNIHomogeneousTreeLikelihood.cpp.
Referenced by fireParameterChanged().
|
protected |
Definition at line 60 of file NNIHomogeneousTreeLikelihood.cpp.
References bpp::log().
Referenced by fireParameterChanged().
|
inlinevirtual |
Reimplemented from bpp::AbstractParametrizable.
Definition at line 116 of file NNIHomogeneousTreeLikelihood.h.
References computeAllTransitionProbabilities(), and computeLogLikelihood().
|
inlinevirtual |
Implements bpp::FunctionInterface.
Definition at line 114 of file NNIHomogeneousTreeLikelihood.h.
References lnL_.
|
inline |
Definition at line 97 of file NNIHomogeneousTreeLikelihood.h.
void BranchLikelihood::initModel | ( | std::shared_ptr< const TransitionModelInterface > | model, |
std::shared_ptr< const DiscreteDistributionInterface > | rDist | ||
) |
Definition at line 19 of file NNIHomogeneousTreeLikelihood.cpp.
|
inline |
|
inline |
Definition at line 103 of file NNIHomogeneousTreeLikelihood.h.
|
inlinevirtual |
Implements bpp::FunctionInterface.
Definition at line 109 of file NNIHomogeneousTreeLikelihood.h.
References bpp::AbstractParametrizable::setParametersValues().
|
protected |
Definition at line 32 of file NNIHomogeneousTreeLikelihood.h.
Referenced by initLikelihoods(), operator=(), and resetLikelihoods().
|
protected |
Definition at line 32 of file NNIHomogeneousTreeLikelihood.h.
Referenced by initLikelihoods(), operator=(), and resetLikelihoods().
|
protected |
Definition at line 37 of file NNIHomogeneousTreeLikelihood.h.
Referenced by getValue(), and operator=().
|
protected |
Definition at line 33 of file NNIHomogeneousTreeLikelihood.h.
Referenced by operator=().
|
protected |
Definition at line 35 of file NNIHomogeneousTreeLikelihood.h.
Referenced by operator=().
|
protected |
Definition at line 35 of file NNIHomogeneousTreeLikelihood.h.
Referenced by operator=().
|
protected |
Definition at line 36 of file NNIHomogeneousTreeLikelihood.h.
Referenced by operator=().
|
protected |
Definition at line 34 of file NNIHomogeneousTreeLikelihood.h.
Referenced by operator=().
|
protected |
Definition at line 38 of file NNIHomogeneousTreeLikelihood.h.
Referenced by operator=().