bpp-phyl3  3.0.0
bpp::LikelihoodCalculation Class Reference

#include <Bpp/Phyl/Likelihood/DataFlow/LikelihoodCalculation.h>

+ Inheritance diagram for bpp::LikelihoodCalculation:
+ Collaboration diagram for bpp::LikelihoodCalculation:

Public Member Functions

 LikelihoodCalculation (Context &context)
 
 LikelihoodCalculation (Context &context, ParameterList &paramList)
 
 LikelihoodCalculation (const LikelihoodCalculation &lik)
 
LikelihoodCalculationclone () const
 
ValueRef< DataLikgetLikelihoodNode ()
 
virtual bool isInitialized () const
 
const ContextgetContext () const
 
void setLikelihoodNode (ValueRef< DataLik > ll)
 
virtual void cleanAllLikelihoods ()
 
void setNamespace (const std::string &prefix)
 
bool hasIndependentParameter (const std::string &name) const
 
const ParameterListgetIndependentParameters () const
 
size_t getNumberOfIndependentParameters () const
 
void aliasParameters (const std::string &p1, const std::string &p2)
 
void aliasParameters (std::map< std::string, std::string > &unparsedParams, bool verbose)
 
void unaliasParameters (const std::string &p1, const std::string &p2)
 
ParameterList getAliasedParameters (const ParameterList &pl) const
 
ParameterList getFromParameters (const ParameterList &pl) const
 
virtual std::vector< std::string > getAlias (const std::string &name) const
 
virtual std::map< std::string, std::string > getAliases () const
 
std::string getFrom (const std::string &name) const
 
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
 
std::string getNamespace () const override
 
std::string getParameterNameWithoutNamespace (const std::string &name) const override
 
virtual void fireParameterChanged (const ParameterList &parameters)
 

Protected Member Functions

virtual void makeLikelihoods ()
 
ContextgetContext_ ()
 
ValueRef< DataLikgetLikelihoodNode_ ()
 
const std::shared_ptr< Parameter > & getParameter (size_t i) const
 
std::shared_ptr< Parameter > & getParameter (size_t i)
 
void addParameter_ (Parameter *parameter)
 
void addParameters_ (const ParameterList &parameters)
 
void shareParameter_ (const std::shared_ptr< Parameter > &parameter)
 
void shareParameters_ (const ParameterList &parameters)
 
void includeParameters_ (const ParameterList &parameters)
 
void deleteParameter_ (size_t index)
 
void deleteParameter_ (std::string &name)
 
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
 

Protected Attributes

ValueRef< DataLiklikelihood_
 

Private Attributes

Contextcontext_
 
ParameterList independentParameters_
 
std::map< std::string, std::shared_ptr< AliasParameterListener > > aliasListenersRegister_
 
ParameterList parameters_
 
std::string prefix_
 

Detailed Description

Base classes for Likelihood calculations. Also used to store shared_ptr.

Definition at line 20 of file LikelihoodCalculation.h.

Constructor & Destructor Documentation

◆ LikelihoodCalculation() [1/3]

bpp::LikelihoodCalculation::LikelihoodCalculation ( Context context)
inline

Definition at line 33 of file LikelihoodCalculation.h.

◆ LikelihoodCalculation() [2/3]

bpp::LikelihoodCalculation::LikelihoodCalculation ( Context context,
ParameterList paramList 
)
inline

◆ LikelihoodCalculation() [3/3]

bpp::LikelihoodCalculation::LikelihoodCalculation ( const LikelihoodCalculation lik)
inline

Definition at line 52 of file LikelihoodCalculation.h.

Member Function Documentation

◆ cleanAllLikelihoods()

virtual void bpp::LikelihoodCalculation::cleanAllLikelihoods ( )
inlinevirtual

◆ clone()

◆ getContext()

const Context& bpp::LikelihoodCalculation::getContext ( ) const
inline

Definition at line 76 of file LikelihoodCalculation.h.

References context_.

◆ getContext_()

◆ getLikelihoodNode()

ValueRef<DataLik> bpp::LikelihoodCalculation::getLikelihoodNode ( )
inline

Definition at line 63 of file LikelihoodCalculation.h.

References likelihood_, and makeLikelihoods().

◆ getLikelihoodNode_()

ValueRef<DataLik> bpp::LikelihoodCalculation::getLikelihoodNode_ ( )
inlineprotected

◆ isInitialized()

◆ makeLikelihoods()

virtual void bpp::LikelihoodCalculation::makeLikelihoods ( )
inlineprotectedvirtual

◆ setLikelihoodNode()

Member Data Documentation

◆ context_

Context& bpp::LikelihoodCalculation::context_
private

Definition at line 24 of file LikelihoodCalculation.h.

Referenced by getContext(), and getContext_().

◆ likelihood_

ValueRef<DataLik> bpp::LikelihoodCalculation::likelihood_
mutableprotected

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