bpp-phyl3
3.0.0
|
#include <Bpp/Phyl/Likelihood/DataFlow/LikelihoodCalculation.h>
Public Member Functions | |
AlignedLikelihoodCalculation (Context &context) | |
AlignedLikelihoodCalculation (const AlignedLikelihoodCalculation &lik) | |
AlignedLikelihoodCalculation * | clone () const |
SiteLikelihoodsRef | getSiteLikelihoods (bool shrunk=false) |
void | setSiteLikelihoods (SiteLikelihoodsRef ll, bool shrunk=false) |
DataLik | getLikelihoodForASite (size_t pos, bool shrunk=false) |
DataLik | getLogLikelihoodForASite (size_t pos, bool shrunk=false) |
VDataLik | getLikelihoodPerSite () |
Get the likelihood for each site. More... | |
void | cleanAllLikelihoods () |
ValueRef< DataLik > | getLikelihoodNode () |
virtual bool | isInitialized () const |
const Context & | getContext () const |
void | setLikelihoodNode (ValueRef< DataLik > ll) |
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 | |
SiteLikelihoodsRef | siteLikelihoods_ |
SiteLikelihoodsRef | patternedSiteLikelihoods_ |
ValueRef< DataLik > | likelihood_ |
Private Attributes | |
Context & | context_ |
ParameterList | independentParameters_ |
std::map< std::string, std::shared_ptr< AliasParameterListener > > | aliasListenersRegister_ |
ParameterList | parameters_ |
std::string | prefix_ |
Definition at line 124 of file LikelihoodCalculation.h.
|
inline |
Definition at line 128 of file LikelihoodCalculation.h.
|
inline |
Definition at line 131 of file LikelihoodCalculation.h.
|
inlinevirtual |
Reimplemented from bpp::LikelihoodCalculation.
Reimplemented in bpp::LikelihoodCalculationSingleProcess, and bpp::LikelihoodCalculationOnABranch.
Definition at line 235 of file LikelihoodCalculation.h.
References bpp::LikelihoodCalculation::cleanAllLikelihoods(), bpp::Context::erase(), bpp::LikelihoodCalculation::getContext_(), patternedSiteLikelihoods_, and siteLikelihoods_.
Referenced by bpp::LikelihoodCalculationOnABranch::cleanAllLikelihoods(), and bpp::LikelihoodCalculationSingleProcess::cleanAllLikelihoods().
|
inlinevirtual |
Reimplemented from bpp::LikelihoodCalculation.
Reimplemented in bpp::HmmLikelihood_DF, bpp::LikelihoodCalculationSingleProcess, and bpp::LikelihoodCalculationOnABranch.
Definition at line 136 of file LikelihoodCalculation.h.
|
inlineinherited |
Definition at line 76 of file LikelihoodCalculation.h.
References bpp::LikelihoodCalculation::context_.
|
inlineprotectedinherited |
Definition at line 110 of file LikelihoodCalculation.h.
References bpp::LikelihoodCalculation::context_.
Referenced by bpp::LikelihoodCalculation::cleanAllLikelihoods(), 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_().
|
inline |
Definition at line 198 of file LikelihoodCalculation.h.
References makeLikelihoods(), patternedSiteLikelihoods_, and siteLikelihoods_.
Referenced by bpp::AbstractAlignedPhyloLikelihood::getLikelihoodForASite(), and getLogLikelihoodForASite().
Definition at line 63 of file LikelihoodCalculation.h.
References bpp::LikelihoodCalculation::likelihood_, and bpp::LikelihoodCalculation::makeLikelihoods().
Definition at line 115 of file LikelihoodCalculation.h.
References bpp::LikelihoodCalculation::likelihood_.
Referenced by bpp::LikelihoodCalculationSingleProcess::getForwardLikelihoodsAtNodeForClass(), and bpp::LikelihoodCalculationSingleProcess::getSiteLikelihoodsTree_().
|
inline |
Get the likelihood for each site.
Definition at line 221 of file LikelihoodCalculation.h.
References bpp::copyEigenToBpp(), and getSiteLikelihoods().
|
inline |
Definition at line 209 of file LikelihoodCalculation.h.
References getLikelihoodForASite(), and bpp::log().
|
inline |
Definition at line 165 of file LikelihoodCalculation.h.
References makeLikelihoods(), patternedSiteLikelihoods_, and siteLikelihoods_.
Referenced by bpp::AlignedPhyloLikelihoodMixture::AlignedPhyloLikelihoodMixture(), and getLikelihoodPerSite().
|
inlinevirtualinherited |
Definition at line 71 of file LikelihoodCalculation.h.
References bpp::LikelihoodCalculation::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 from bpp::LikelihoodCalculation.
Reimplemented in bpp::HmmLikelihood_DF, bpp::LikelihoodCalculationSingleProcess, and bpp::LikelihoodCalculationOnABranch.
Definition at line 252 of file LikelihoodCalculation.h.
Referenced by getLikelihoodForASite(), and getSiteLikelihoods().
Definition at line 85 of file LikelihoodCalculation.h.
References bpp::LikelihoodCalculation::likelihood_.
Referenced by bpp::HmmLikelihood_DF::HmmLikelihood_DF(), bpp::LikelihoodCalculationOnABranch::makeLikelihoods(), and bpp::LikelihoodCalculationSingleProcess::makeLikelihoodsAtRoot_().
|
inline |
Definition at line 184 of file LikelihoodCalculation.h.
References patternedSiteLikelihoods_, and siteLikelihoods_.
Referenced by bpp::HmmLikelihood_DF::HmmLikelihood_DF(), bpp::LikelihoodCalculationOnABranch::makeLikelihoods(), and bpp::LikelihoodCalculationSingleProcess::makeLikelihoodsAtRoot_().
|
privateinherited |
Definition at line 24 of file LikelihoodCalculation.h.
Referenced by bpp::LikelihoodCalculation::getContext(), and bpp::LikelihoodCalculation::getContext_().
Likelihoods
Definition at line 30 of file LikelihoodCalculation.h.
Referenced by bpp::LikelihoodCalculation::cleanAllLikelihoods(), bpp::LikelihoodCalculation::getLikelihoodNode(), bpp::LikelihoodCalculation::getLikelihoodNode_(), bpp::LikelihoodCalculation::isInitialized(), bpp::LikelihoodCalculationSingleProcess::makeLikelihoodsAtRoot_(), and bpp::LikelihoodCalculation::setLikelihoodNode().
|
mutableprotected |
Definition at line 155 of file LikelihoodCalculation.h.
Referenced by cleanAllLikelihoods(), getLikelihoodForASite(), getSiteLikelihoods(), bpp::LikelihoodCalculationOnABranch::makeLikelihoods(), bpp::LikelihoodCalculationSingleProcess::makeLikelihoodsAtRoot_(), and setSiteLikelihoods().
|
mutableprotected |
Site Likelihoods
Definition at line 149 of file LikelihoodCalculation.h.
Referenced by cleanAllLikelihoods(), getLikelihoodForASite(), getSiteLikelihoods(), and setSiteLikelihoods().