|
bpp-phyl3 3.0.0
|
#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 ¶mList) | |
| LikelihoodCalculation (const LikelihoodCalculation &lik) | |
| LikelihoodCalculation * | clone () const |
| ValueRef< DataLik > | getLikelihoodNode () |
| virtual bool | isInitialized () const |
| const Context & | getContext () const |
| void | setLikelihoodNode (ValueRef< DataLik > ll) |
| virtual void | cleanAllLikelihoods () |
| void | setNamespace (const std::string &prefix) |
| bool | hasIndependentParameter (const std::string &name) const |
| const ParameterList & | getIndependentParameters () 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 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 |
| std::string | getNamespace () const override |
| std::string | getParameterNameWithoutNamespace (const std::string &name) const override |
| virtual void | fireParameterChanged (const ParameterList ¶meters) |
Protected Member Functions | |
| virtual void | makeLikelihoods () |
| Context & | getContext_ () |
| ValueRef< DataLik > | getLikelihoodNode_ () |
| 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 ¶meters) |
| void | shareParameter_ (const std::shared_ptr< Parameter > ¶meter) |
| void | shareParameters_ (const ParameterList ¶meters) |
| void | includeParameters_ (const ParameterList ¶meters) |
| void | deleteParameter_ (size_t index) |
| void | deleteParameter_ (std::string &name) |
| 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 | |
| ValueRef< DataLik > | likelihood_ |
Private Attributes | |
| Context & | context_ |
| ParameterList | independentParameters_ |
| std::map< std::string, std::shared_ptr< AliasParameterListener > > | aliasListenersRegister_ |
| ParameterList | parameters_ |
| std::string | prefix_ |
Base classes for Likelihood calculations. Also used to store shared_ptr.
Definition at line 20 of file LikelihoodCalculation.h.
|
inline |
Definition at line 33 of file LikelihoodCalculation.h.
|
inline |
Definition at line 38 of file LikelihoodCalculation.h.
References bpp::AbstractParameterAliasable::shareParameters_().
|
inline |
Definition at line 52 of file LikelihoodCalculation.h.
|
inlinevirtual |
Reimplemented in bpp::AlignedLikelihoodCalculation, bpp::LikelihoodCalculationOnABranch, and bpp::LikelihoodCalculationSingleProcess.
Definition at line 90 of file LikelihoodCalculation.h.
References bpp::Context::erase(), getContext_(), and likelihood_.
Referenced by bpp::AlignedLikelihoodCalculation::cleanAllLikelihoods().
|
inlinevirtual |
Implements bpp::AbstractParameterAliasable.
Reimplemented in bpp::AlignedLikelihoodCalculation, bpp::LikelihoodCalculationOnABranch, bpp::LikelihoodCalculationSingleProcess, and bpp::HmmLikelihood_DF.
Definition at line 58 of file LikelihoodCalculation.h.
|
inline |
Definition at line 76 of file LikelihoodCalculation.h.
References context_.
|
inlineprotected |
Definition at line 110 of file LikelihoodCalculation.h.
References context_.
Referenced by cleanAllLikelihoods(), bpp::AlignedLikelihoodCalculation::cleanAllLikelihoods(), bpp::LikelihoodCalculationOnABranch::expandMatrix(), bpp::LikelihoodCalculationSingleProcess::expandMatrix(), bpp::LikelihoodCalculationOnABranch::expandVector(), bpp::LikelihoodCalculationSingleProcess::expandVector(), bpp::HmmLikelihood_DF::HmmLikelihood_DF(), bpp::LikelihoodCalculationSingleProcess::makeForwardLikelihoodTree_(), bpp::LikelihoodCalculationOnABranch::makeLikelihoods(), bpp::LikelihoodCalculationSingleProcess::makeLikelihoodsAtDAGNode_(), bpp::LikelihoodCalculationSingleProcess::makeLikelihoodsAtNode_(), bpp::LikelihoodCalculationSingleProcess::makeLikelihoodsAtRoot_(), bpp::LikelihoodCalculationSingleProcess::makeProcessNodes_(), bpp::LikelihoodCalculationSingleProcess::makeRootFreqs_(), bpp::LikelihoodCalculationSingleProcess::setClockLike(), bpp::LikelihoodCalculationSingleProcess::setNumericalDerivateConfiguration(), and bpp::LikelihoodCalculationSingleProcess::setPatterns_().
Definition at line 63 of file LikelihoodCalculation.h.
References likelihood_, and makeLikelihoods().
Definition at line 115 of file LikelihoodCalculation.h.
References likelihood_.
Referenced by bpp::LikelihoodCalculationSingleProcess::getForwardLikelihoodsAtNodeForClass(), and bpp::LikelihoodCalculationSingleProcess::getSiteLikelihoodsTree_().
|
inlinevirtual |
Definition at line 71 of file LikelihoodCalculation.h.
References likelihood_.
Referenced by bpp::SubstitutionMappingTools::computeCounts(), bpp::SubstitutionMappingTools::computeNormalizations(), bpp::RewardMappingTools::computeRewardVectors(), bpp::OnABranchPhyloLikelihood::isInitialized(), bpp::OneProcessSequencePhyloLikelihood::isInitialized(), bpp::SingleProcessPhyloLikelihood::isInitialized(), and bpp::LikelihoodCalculationSingleProcess::setData().
|
inlineprotectedvirtual |
Reimplemented in bpp::AlignedLikelihoodCalculation, bpp::LikelihoodCalculationOnABranch, bpp::LikelihoodCalculationSingleProcess, and bpp::HmmLikelihood_DF.
Definition at line 105 of file LikelihoodCalculation.h.
Referenced by getLikelihoodNode().
Definition at line 85 of file LikelihoodCalculation.h.
References likelihood_.
Referenced by bpp::HmmLikelihood_DF::HmmLikelihood_DF(), bpp::LikelihoodCalculationOnABranch::makeLikelihoods(), and bpp::LikelihoodCalculationSingleProcess::makeLikelihoodsAtRoot_().
|
private |
Definition at line 24 of file LikelihoodCalculation.h.
Referenced by getContext(), and getContext_().
Likelihoods
Definition at line 30 of file LikelihoodCalculation.h.
Referenced by cleanAllLikelihoods(), getLikelihoodNode(), getLikelihoodNode_(), isInitialized(), bpp::LikelihoodCalculationSingleProcess::makeLikelihoodsAtRoot_(), and setLikelihoodNode().