bpp-phyl3
3.0.0
|
Likelihood framework based on a mixture of aligned likelihoods. More...
#include <Bpp/Phyl/Likelihood/PhyloLikelihoods/AlignedPhyloLikelihoodMixture.h>
Public Member Functions | |
AlignedPhyloLikelihoodMixture (Context &context, std::shared_ptr< PhyloLikelihoodContainer > pC, const std::vector< size_t > &nPhylo, bool inCollection=true) | |
virtual | ~AlignedPhyloLikelihoodMixture () |
LikelihoodCalculation & | likelihoodCalculation () const override |
std::shared_ptr< LikelihoodCalculation > | getLikelihoodCalculation () const override |
AlignedLikelihoodCalculation & | alignedLikelihoodCalculation () const override |
std::shared_ptr< AlignedLikelihoodCalculation > | getAlignedLikelihoodCalculation () const override |
Vdouble | getPhyloProbabilities () const |
Get the probabilities of the simplex. More... | |
double | getPhyloProb (size_t index) const |
Get the probability of a phylolikelihood. More... | |
void | setPhyloProb (Simplex const &simplex) |
Set the probabilities of the simplex. More... | |
bool | addPhyloLikelihood (size_t nPhyl, const std::string &suff) override |
adds a PhyloLikelihood already stored in the m ap, iff it is an AlignedPhyloLikelihood of the same size More... | |
std::shared_ptr< const AlignedPhyloLikelihoodInterface > | getAlignedPhyloLikelihood (size_t nPhyl) const override |
std::shared_ptr< AlignedPhyloLikelihoodInterface > | getAlignedPhyloLikelihood (size_t nPhyl) override |
const AlignedPhyloLikelihoodInterface & | alignedPhyloLikelihood (size_t nPhyl) const override |
AlignedPhyloLikelihoodInterface & | alignedPhyloLikelihood (size_t nPhyl) override |
DataLik | getLikelihoodForASiteForAPhyloLikelihood (size_t site, size_t nPhyl) const override |
Get the likelihood for a site for an aligned phyloLikelihood. More... | |
double | getLogLikelihoodForASiteForAPhyloLikelihood (size_t site, size_t nPhyl) const override |
Get the log likelihood for a site for an aligned phyloLikelihood. More... | |
virtual std::shared_ptr< PhyloLikelihoodContainer > | getPhyloContainer ()=0 |
virtual std::shared_ptr< const PhyloLikelihoodContainer > | getPhyloContainer () const =0 |
std::shared_ptr< PhyloLikelihoodContainer > | getPhyloContainer () override |
std::shared_ptr< const PhyloLikelihoodContainer > | getPhyloContainer () const override |
virtual const std::vector< size_t > & | getNumbersOfPhyloLikelihoods () const =0 |
const std::vector< size_t > & | getNumbersOfPhyloLikelihoods () const override |
const Context & | context () const override |
Context & | context () override |
ValueRef< DataLik > | getLikelihoodNode () const override |
virtual void | enableSecondOrderDerivatives (bool yn)=0 |
virtual bool | enableSecondOrderDerivatives () const=0 |
virtual void | enableSecondOrderDerivatives (bool yn) override |
bool | enableSecondOrderDerivatives () const override |
virtual double | getSecondOrderDerivative (const std::string &variable) const=0 |
virtual double | getSecondOrderDerivative (const std::string &variable1, const std::string &variable2) const=0 |
double | getSecondOrderDerivative (const std::string &variable) const override |
double | getSecondOrderDerivative (const std::string &variable1, const std::string &variable2) const override |
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 void | enableFirstOrderDerivatives (bool yn)=0 |
virtual bool | enableFirstOrderDerivatives () const=0 |
virtual void | enableFirstOrderDerivatives (bool yn) override |
Tell if derivatives must be computed: for Function inheritance. More... | |
bool | enableFirstOrderDerivatives () const override |
virtual double | getFirstOrderDerivative (const std::string &variable) const=0 |
double | getFirstOrderDerivative (const std::string &variable) const override |
virtual double | df (const std::string &variable, const ParameterList ¶meters) |
virtual void | setParameters (const ParameterList ¶meters)=0 |
void | setParameters (const ParameterList ¶meters) override |
virtual double | getValue () const=0 |
double | getValue () const override |
virtual double | f (const ParameterList ¶meters) |
virtual bool | hasParameter (const std::string &name) const=0 |
bool | hasParameter (const std::string &name) const override |
virtual const ParameterList & | getParameters () const=0 |
const ParameterList & | getParameters () const override |
virtual const Parameter & | parameter (const std::string &name) const=0 |
const Parameter & | parameter (const std::string &name) const override |
virtual double | getParameterValue (const std::string &name) const=0 |
double | getParameterValue (const std::string &name) const override |
virtual void | setAllParametersValues (const ParameterList ¶meters)=0 |
void | setAllParametersValues (const ParameterList ¶meters) override |
virtual void | setParameterValue (const std::string &name, double value)=0 |
void | setParameterValue (const std::string &name, double value) override |
virtual void | setParametersValues (const ParameterList ¶meters)=0 |
void | setParametersValues (const ParameterList ¶meters) override |
virtual bool | matchParametersValues (const ParameterList ¶meters)=0 |
bool | matchParametersValues (const ParameterList ¶meters) override |
virtual void | removeConstraint (const std::string &name)=0 |
void | removeConstraint (const std::string &name) override |
virtual void | setConstraint (const std::string &name, std::shared_ptr< ConstraintInterface > constraint)=0 |
void | setConstraint (const std::string &name, std::shared_ptr< ConstraintInterface > constraint) override |
virtual size_t | getNumberOfParameters () const=0 |
size_t | getNumberOfParameters () const override |
virtual void | setNamespace (const std::string &prefix)=0 |
void | setNamespace (const std::string &prefix) override |
virtual std::string | getNamespace () const=0 |
std::string | getNamespace () const override |
virtual std::string | getParameterNameWithoutNamespace (const std::string &name) const=0 |
std::string | getParameterNameWithoutNamespace (const std::string &name) const override |
size_t | getNumberOfSites () const |
Get the number of sites in the dataset. More... | |
DataLik | getLikelihoodForASite (size_t site) const |
Get the likelihood for a site (on uncompressed data) More... | |
double | getLogLikelihoodForASite (size_t site) const |
Get the log likelihood for a site, and its derivatives. More... | |
VDataLik | getLikelihoodPerSite () const |
Get the likelihood for each site. More... | |
void | shareParameters (const ParameterList &variableNodes) |
Share Parameters, that are DF_parameters. More... | |
ValueRef< DataLik > | firstOrderDerivativeNode (const std::string &variable) const |
ValueRef< DataLik > | secondOrderDerivativeNode (const std::string &variable1, const std::string &variable2) const |
const std::shared_ptr< Parameter > & | getParameter (const std::string &name) const |
The PhyloLikelihood storage. | |
virtual bool | hasPhyloLikelihood (size_t nPhyl)=0 |
virtual std::shared_ptr< const PhyloLikelihoodInterface > | getPhyloLikelihood (size_t nPhyl) const =0 |
virtual std::shared_ptr< PhyloLikelihoodInterface > | getPhyloLikelihood (size_t nPhyl)=0 |
The PhyloLikelihood storage. | |
bool | hasPhyloLikelihood (size_t nPhyl) override |
std::shared_ptr< const PhyloLikelihoodInterface > | getPhyloLikelihood (size_t nPhyl) const override |
std::shared_ptr< PhyloLikelihoodInterface > | getPhyloLikelihood (size_t nPhyl) override |
The data functions | |
virtual bool | isInitialized () const =0 |
virtual const Context & | context () const =0 |
virtual Context & | context ()=0 |
Inherited from PhyloLikelihood | |
bool | isInitialized () const override |
The likelihood functions. | |
virtual ValueRef< DataLik > | getLikelihoodNode () const =0 |
double | getLogLikelihood () const |
Get the logarithm of the likelihood for the whole dataset. More... | |
Retrieve some particular independent parameters subsets. | |
Get the derivates of the LogLikelihood. | |
virtual ParameterList | getNonDerivableParameters () const =0 |
virtual ParameterList | getDerivableParameters () const =0 |
virtual ParameterList | getBranchLengthParameters () const =0 |
Get the independent branch lengths parameters. More... | |
virtual ParameterList | getSubstitutionModelParameters () const =0 |
Get the independent parameters associated to substitution model(s). More... | |
virtual ParameterList | getRateDistributionParameters () const =0 |
Get the independent parameters associated to the rate distribution(s). More... | |
virtual ParameterList | getRootFrequenciesParameters () const =0 |
Get the independent parameters associated to the root frequencies(s). More... | |
Retrieve some particular parameters subsets. | |
ParameterList | getNonDerivableParameters () const override |
ParameterList | getDerivableParameters () const override |
ParameterList | getBranchLengthParameters () const override |
Get the branch lengths parameters. More... | |
ParameterList | getSubstitutionModelParameters () const override |
Get the parameters associated to substitution model(s). More... | |
ParameterList | getRateDistributionParameters () const override |
Get the parameters associated to the rate distribution(s). More... | |
ParameterList | getRootFrequenciesParameters () const override |
Get the parameters associated to the root frequencies(s). More... | |
The data functions | |
virtual size_t | getNumberOfSites () const =0 |
Get the number of sites in the dataset. More... | |
The likelihood functions. | |
virtual DataLik | getLikelihoodForASite (size_t site) const =0 |
Get the likelihood for a site. More... | |
virtual double | getLogLikelihoodForASite (size_t site) const =0 |
Get the log likelihood for a site, and its derivatives. More... | |
virtual VDataLik | getLikelihoodPerSite () const =0 |
Get the likelihood for each site. More... | |
Protected Member Functions | |
AlignedPhyloLikelihoodMixture (const AlignedPhyloLikelihoodMixture &mlc) | |
AlignedPhyloLikelihoodMixture & | operator= (const AlignedPhyloLikelihoodMixture &mlc) |
AlignedPhyloLikelihoodMixture * | clone () const override |
void | fireParameterChanged (const ParameterList ¶meters) override |
virtual ParameterList & | getParameters_ ()=0 |
ParameterList & | getParameters_ () override |
Node_DF & | accessVariableNode (const std::string &name) const |
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 |
void | setNumberOfSites (size_t nbSites) |
Static Protected Member Functions | |
static Node_DF & | accessVariableNode (const Parameter ¶m) |
Protected Attributes | |
std::shared_ptr< PhyloLikelihoodContainer > | pPhyloCont_ |
pointer to a PhyloLikelihoodContainer More... | |
std::vector< size_t > | nPhylo_ |
vector of AbstractPhyloLikelihood numbers More... | |
std::vector< std::shared_ptr< LikelihoodCalculation > > | vLikCal_ |
Context & | context_ |
DataLik | minusLogLik_ |
the value More... | |
std::unordered_map< std::string, ValueRef< DataLik > > | firstOrderDerivativeNodes_ |
For Dataflow computing. More... | |
std::unordered_map< std::pair< std::string, std::string >, ValueRef< DataLik >, StringPairHash > | secondOrderDerivativeNodes_ |
size_t | nbSites_ |
Private Attributes | |
std::shared_ptr< ConfiguredSimplex > | simplex_ |
std::shared_ptr< AlignedLikelihoodCalculation > | likCal_ |
ParameterList | parameters_ |
std::string | prefix_ |
Likelihood framework based on a mixture of aligned likelihoods.
The resulting likelihood is the mean value of the AlignedPhyloLikelihoods, ponderated with parametrized probabilities (through a Simplex).
Definition at line 25 of file AlignedPhyloLikelihoodMixture.h.
AlignedPhyloLikelihoodMixture::AlignedPhyloLikelihoodMixture | ( | Context & | context, |
std::shared_ptr< PhyloLikelihoodContainer > | pC, | ||
const std::vector< size_t > & | nPhylo, | ||
bool | inCollection = true |
||
) |
Definition at line 10 of file AlignedPhyloLikelihoodMixture.cpp.
References bpp::AlignedPhyloLikelihoodInterface::alignedLikelihoodCalculation(), bpp::AbstractAlignedPhyloLikelihoodSet::alignedPhyloLikelihood(), bpp::AbstractPhyloLikelihood::context(), bpp::NumericMutable< T >::create(), bpp::SumOfLogarithms< F >::create(), bpp::ConfiguredParameter::create(), bpp::Simplex::dimension(), bpp::AbstractPhyloLikelihoodSet::getNumbersOfPhyloLikelihoods(), bpp::Simplex::getParameters(), bpp::AlignedLikelihoodCalculation::getSiteLikelihoods(), likCal_, bpp::AbstractAlignedPhyloLikelihood::nbSites_, bpp::ParameterList::shareParameter(), bpp::AbstractParametrizable::shareParameters_(), simplex_, and bpp::ThreePoints.
Referenced by clone().
|
inlinevirtual |
Definition at line 46 of file AlignedPhyloLikelihoodMixture.h.
|
inlineprotected |
Definition at line 49 of file AlignedPhyloLikelihoodMixture.h.
|
inlinestaticprotectedinherited |
Definition at line 188 of file AbstractPhyloLikelihood.h.
Referenced by bpp::AbstractPhyloLikelihood::accessVariableNode(), bpp::AbstractPhyloLikelihood::firstOrderDerivativeNode(), bpp::OnABranchPhyloLikelihood::firstOrderDerivativeVector(), bpp::OneProcessSequencePhyloLikelihood::firstOrderDerivativeVector(), bpp::SingleProcessPhyloLikelihood::firstOrderDerivativeVector(), bpp::AbstractPhyloLikelihood::secondOrderDerivativeNode(), bpp::OnABranchPhyloLikelihood::secondOrderDerivativeVector(), bpp::OneProcessSequencePhyloLikelihood::secondOrderDerivativeVector(), and bpp::SingleProcessPhyloLikelihood::secondOrderDerivativeVector().
|
inlineprotectedinherited |
Definition at line 193 of file AbstractPhyloLikelihood.h.
References bpp::AbstractPhyloLikelihood::accessVariableNode(), and bpp::SecondOrderDerivable::parameter().
|
overridevirtualinherited |
adds a PhyloLikelihood already stored in the m ap, iff it is an AlignedPhyloLikelihood of the same size
nPhyl | number of the phylolikelihood |
suff | for parameters names if use specific parameters names |
Reimplemented from bpp::AbstractPhyloLikelihoodSet.
Definition at line 60 of file AlignedPhyloLikelihoodSet.cpp.
References bpp::AbstractPhyloLikelihoodSet::addPhyloLikelihood(), bpp::AbstractAlignedPhyloLikelihoodSet::getAlignedPhyloLikelihood(), bpp::AbstractAlignedPhyloLikelihood::getNumberOfSites(), and bpp::AbstractAlignedPhyloLikelihood::setNumberOfSites().
|
inlineoverridevirtual |
Implements bpp::AlignedPhyloLikelihoodInterface.
Definition at line 86 of file AlignedPhyloLikelihoodMixture.h.
References likCal_.
|
inlineoverridevirtualinherited |
Implements bpp::AlignedPhyloLikelihoodSetInterface.
Definition at line 120 of file AlignedPhyloLikelihoodSet.h.
Referenced by AlignedPhyloLikelihoodMixture(), bpp::AbstractAlignedPhyloLikelihoodSet::getLikelihoodForASiteForAPhyloLikelihood(), and bpp::AbstractAlignedPhyloLikelihoodSet::getLogLikelihoodForASiteForAPhyloLikelihood().
|
inlineoverridevirtualinherited |
Implements bpp::AlignedPhyloLikelihoodSetInterface.
Definition at line 125 of file AlignedPhyloLikelihoodSet.h.
|
inlineoverrideprotectedvirtual |
Implements bpp::AlignedPhyloLikelihoodSetInterface.
Definition at line 67 of file AlignedPhyloLikelihoodMixture.h.
References AlignedPhyloLikelihoodMixture().
|
pure virtualinherited |
Implemented in bpp::AbstractPhyloLikelihood.
|
inlineoverridevirtualinherited |
Implements bpp::PhyloLikelihoodInterface.
Definition at line 73 of file AbstractPhyloLikelihood.h.
References bpp::AbstractPhyloLikelihood::context_.
Referenced by AlignedPhyloLikelihoodMixture(), bpp::AutoCorrelationProcessPhyloLikelihood::AutoCorrelationProcessPhyloLikelihood(), bpp::HmmProcessPhyloLikelihood::HmmProcessPhyloLikelihood(), bpp::PartitionProcessPhyloLikelihood::makeLikCal_(), bpp::MixtureProcessPhyloLikelihood::MixtureProcessPhyloLikelihood(), bpp::OneProcessSequencePhyloLikelihood::OneProcessSequencePhyloLikelihood(), and bpp::PartitionProcessPhyloLikelihood::PartitionProcessPhyloLikelihood().
|
inlineoverridevirtualinherited |
Implements bpp::PhyloLikelihoodInterface.
Definition at line 75 of file AbstractPhyloLikelihood.h.
References bpp::AbstractPhyloLikelihood::context_.
|
pure virtualinherited |
Implemented in bpp::AbstractPhyloLikelihood.
|
inlineoverridevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 115 of file AbstractPhyloLikelihood.h.
|
inlineoverridevirtualinherited |
Tell if derivatives must be computed: for Function inheritance.
Implements bpp::SecondOrderDerivable.
Definition at line 113 of file AbstractPhyloLikelihood.h.
|
inlineoverridevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 116 of file AbstractPhyloLikelihood.h.
|
inlineoverridevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 114 of file AbstractPhyloLikelihood.h.
|
overrideprotectedvirtual |
Reimplemented from bpp::AbstractPhyloLikelihoodSet.
Definition at line 81 of file AlignedPhyloLikelihoodMixture.cpp.
|
inlineinherited |
Definition at line 139 of file AbstractPhyloLikelihood.h.
References bpp::AbstractPhyloLikelihood::accessVariableNode(), bpp::AbstractPhyloLikelihood::context_, bpp::AbstractPhyloLikelihood::firstOrderDerivativeNodes_, and bpp::AbstractPhyloLikelihood::getLikelihoodNode().
Referenced by bpp::AbstractPhyloLikelihood::getFirstOrderDerivative(), and bpp::AbstractPhyloLikelihood::secondOrderDerivativeNode().
|
inlineoverridevirtual |
Implements bpp::AlignedPhyloLikelihoodInterface.
Definition at line 91 of file AlignedPhyloLikelihoodMixture.h.
References likCal_.
|
inlineoverridevirtualinherited |
Implements bpp::AlignedPhyloLikelihoodSetInterface.
Definition at line 110 of file AlignedPhyloLikelihoodSet.h.
References bpp::AbstractPhyloLikelihoodSet::pPhyloCont_.
Referenced by bpp::AbstractAlignedPhyloLikelihoodSet::AbstractAlignedPhyloLikelihoodSet(), and bpp::AbstractAlignedPhyloLikelihoodSet::addPhyloLikelihood().
|
inlineoverridevirtualinherited |
Implements bpp::AlignedPhyloLikelihoodSetInterface.
Definition at line 115 of file AlignedPhyloLikelihoodSet.h.
References bpp::AbstractPhyloLikelihoodSet::pPhyloCont_.
|
pure virtualinherited |
Get the independent branch lengths parameters.
Implemented in bpp::SingleProcessPhyloLikelihood, bpp::AbstractParametrizableSequencePhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, and bpp::OnABranchPhyloLikelihood.
Referenced by bpp::BppPhylogeneticsApplication::displayParameters().
|
overridevirtualinherited |
Get the branch lengths parameters.
Implements bpp::PhyloLikelihoodInterface.
Definition at line 107 of file PhyloLikelihoodSet.cpp.
References bpp::AbstractPhyloLikelihoodSet::getPhyloLikelihood(), bpp::ParameterList::includeParameters(), and bpp::AbstractPhyloLikelihoodSet::nPhylo_.
|
pure virtualinherited |
|
overridevirtualinherited |
Implements bpp::PhyloLikelihoodInterface.
Definition at line 95 of file PhyloLikelihoodSet.cpp.
References bpp::AbstractPhyloLikelihoodSet::getPhyloLikelihood(), bpp::ParameterList::includeParameters(), and bpp::AbstractPhyloLikelihoodSet::nPhylo_.
|
inlineoverridevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 131 of file AbstractPhyloLikelihood.h.
References bpp::convert(), and bpp::AbstractPhyloLikelihood::firstOrderDerivativeNode().
|
inlineoverridevirtual |
Implements bpp::PhyloLikelihoodInterface.
Definition at line 81 of file AlignedPhyloLikelihoodMixture.h.
References likCal_.
|
inlinevirtualinherited |
Get the likelihood for a site (on uncompressed data)
site | The site index to analyse. |
Implements bpp::AlignedPhyloLikelihoodInterface.
Definition at line 143 of file AlignedPhyloLikelihood.h.
References bpp::AlignedPhyloLikelihoodInterface::alignedLikelihoodCalculation(), and bpp::AlignedLikelihoodCalculation::getLikelihoodForASite().
|
pure virtualinherited |
Get the likelihood for a site.
site | The site index to analyse. |
Implemented in bpp::AbstractAlignedPhyloLikelihood.
Referenced by bpp::AbstractAlignedPhyloLikelihoodSet::getLikelihoodForASiteForAPhyloLikelihood().
|
inlineoverridevirtualinherited |
Get the likelihood for a site for an aligned phyloLikelihood.
site | The site index to analyse. |
nPhyl | the phyloLikelihood index. |
Implements bpp::AlignedPhyloLikelihoodSetInterface.
Definition at line 130 of file AlignedPhyloLikelihoodSet.h.
References bpp::AbstractAlignedPhyloLikelihoodSet::alignedPhyloLikelihood(), and bpp::AlignedPhyloLikelihoodInterface::getLikelihoodForASite().
|
pure virtualinherited |
Implemented in bpp::AbstractPhyloLikelihood.
|
inlineoverridevirtualinherited |
Implements bpp::PhyloLikelihoodInterface.
Definition at line 100 of file AbstractPhyloLikelihood.h.
References bpp::PhyloLikelihoodInterface::getLikelihoodCalculation().
Referenced by bpp::AbstractPhyloLikelihood::firstOrderDerivativeNode(), and bpp::AbstractPhyloLikelihood::getValue().
|
inlinevirtualinherited |
Get the likelihood for each site.
Implements bpp::AlignedPhyloLikelihoodInterface.
Definition at line 167 of file AlignedPhyloLikelihood.h.
References bpp::AlignedPhyloLikelihoodInterface::getAlignedLikelihoodCalculation().
Referenced by bpp::MixtureProcessPhyloLikelihood::getPosteriorProbabilitiesPerSitePerProcess(), and bpp::OneProcessSequencePhyloLikelihood::getPosteriorRatePerSite().
|
pure virtualinherited |
Get the likelihood for each site.
Implemented in bpp::AbstractAlignedPhyloLikelihood.
|
inlineinherited |
Get the logarithm of the likelihood for the whole dataset.
Definition at line 66 of file PhyloLikelihood.h.
References bpp::SecondOrderDerivable::getValue().
|
inlinevirtualinherited |
Get the log likelihood for a site, and its derivatives.
site | The site index to analyse. |
Implements bpp::AlignedPhyloLikelihoodInterface.
Definition at line 154 of file AlignedPhyloLikelihood.h.
References bpp::convert(), and bpp::AlignedPhyloLikelihoodInterface::getAlignedLikelihoodCalculation().
|
pure virtualinherited |
Get the log likelihood for a site, and its derivatives.
site | The site index to analyse. |
Implemented in bpp::AbstractAlignedPhyloLikelihood.
Referenced by bpp::AbstractAlignedPhyloLikelihoodSet::getLogLikelihoodForASiteForAPhyloLikelihood(), and bpp::PhylogeneticsApplicationTools::printAnalysisInformation().
|
inlineoverridevirtualinherited |
Get the log likelihood for a site for an aligned phyloLikelihood.
site | The site index to analyse. |
nPhyl | the phyloLikelihood index. |
Implements bpp::AlignedPhyloLikelihoodSetInterface.
Definition at line 135 of file AlignedPhyloLikelihoodSet.h.
References bpp::AbstractAlignedPhyloLikelihoodSet::alignedPhyloLikelihood(), and bpp::AlignedPhyloLikelihoodInterface::getLogLikelihoodForASite().
|
pure virtualinherited |
|
overridevirtualinherited |
Implements bpp::PhyloLikelihoodInterface.
Definition at line 84 of file PhyloLikelihoodSet.cpp.
References bpp::AbstractPhyloLikelihoodSet::getPhyloLikelihood(), bpp::ParameterList::includeParameters(), and bpp::AbstractPhyloLikelihoodSet::nPhylo_.
|
inlinevirtualinherited |
Get the number of sites in the dataset.
Implements bpp::AlignedPhyloLikelihoodInterface.
Reimplemented in bpp::SingleProcessPhyloLikelihood, bpp::PartitionProcessPhyloLikelihood, and bpp::OnABranchPhyloLikelihood.
Definition at line 135 of file AlignedPhyloLikelihood.h.
References bpp::AbstractAlignedPhyloLikelihood::nbSites_.
Referenced by bpp::AbstractAlignedPhyloLikelihoodSet::AbstractAlignedPhyloLikelihoodSet(), bpp::AbstractAlignedPhyloLikelihoodSet::addPhyloLikelihood(), bpp::OneProcessSequencePhyloLikelihood::getClassWithMaxPostProbPerSite(), bpp::MultiProcessSequencePhyloLikelihood::getLikelihoodPerSitePerProcess(), bpp::OneProcessSequencePhyloLikelihood::getPosteriorRatePerSite(), and bpp::OneProcessSequencePhyloLikelihood::getPosteriorStateFrequencies().
|
pure virtualinherited |
Get the number of sites in the dataset.
Implemented in bpp::SingleProcessPhyloLikelihood, bpp::PartitionProcessPhyloLikelihood, bpp::OnABranchPhyloLikelihood, and bpp::AbstractAlignedPhyloLikelihood.
Referenced by bpp::HmmPhyloAlphabet::HmmPhyloAlphabet(), and bpp::PhylogeneticsApplicationTools::printAnalysisInformation().
|
pure virtualinherited |
Implemented in bpp::AbstractPhyloLikelihoodSet.
Referenced by bpp::HmmPhyloAlphabet::HmmPhyloAlphabet(), and bpp::PhylogeneticsApplicationTools::printAnalysisInformation().
|
inlineoverridevirtualinherited |
Implements bpp::PhyloLikelihoodSetInterface.
Definition at line 139 of file PhyloLikelihoodSet.h.
References bpp::AbstractPhyloLikelihoodSet::nPhylo_.
Referenced by bpp::AbstractPhyloLikelihoodSet::AbstractPhyloLikelihoodSet(), AlignedPhyloLikelihoodMixture(), and bpp::PartitionProcessPhyloLikelihood::getData().
|
pure virtualinherited |
Implemented in bpp::AbstractPhyloLikelihoodSet.
|
inlineoverridevirtualinherited |
Implements bpp::PhyloLikelihoodSetInterface.
Definition at line 134 of file PhyloLikelihoodSet.h.
References bpp::AbstractPhyloLikelihoodSet::pPhyloCont_.
|
inlineoverridevirtualinherited |
Implements bpp::PhyloLikelihoodSetInterface.
Definition at line 129 of file PhyloLikelihoodSet.h.
References bpp::AbstractPhyloLikelihoodSet::pPhyloCont_.
Referenced by bpp::AbstractPhyloLikelihoodSet::AbstractPhyloLikelihoodSet(), bpp::PartitionProcessPhyloLikelihood::getData(), bpp::PartitionProcessPhyloLikelihood::PartitionProcessPhyloLikelihood(), bpp::PhyloLikelihoodFormula::readFormula(), and bpp::PartitionProcessPhyloLikelihood::setData().
|
pure virtualinherited |
Implemented in bpp::AbstractPhyloLikelihoodSet.
|
pure virtualinherited |
Implemented in bpp::AbstractPhyloLikelihoodSet.
|
inlineoverridevirtualinherited |
Implements bpp::PhyloLikelihoodSetInterface.
Definition at line 169 of file PhyloLikelihoodSet.h.
References bpp::AbstractPhyloLikelihoodSet::pPhyloCont_.
Referenced by bpp::AbstractPhyloLikelihoodSet::addPhyloLikelihood(), bpp::AbstractPhyloLikelihoodSet::fireParameterChanged(), bpp::AbstractPhyloLikelihoodSet::getBranchLengthParameters(), bpp::AbstractPhyloLikelihoodSet::getDerivableParameters(), bpp::PartitionProcessPhyloLikelihood::getLikelihoodCalculationForASite(), bpp::AbstractPhyloLikelihoodSet::getNonDerivableParameters(), bpp::PartitionProcessPhyloLikelihood::getPhyloLikelihoodForASite(), bpp::AbstractPhyloLikelihoodSet::getRateDistributionParameters(), bpp::AbstractPhyloLikelihoodSet::getRootFrequenciesParameters(), bpp::AbstractPhyloLikelihoodSet::getSubstitutionModelParameters(), bpp::AbstractPhyloLikelihoodSet::isInitialized(), bpp::PhyloLikelihoodFormula::makeLikelihoodsFromOperator(), and bpp::PhyloLikelihoodFormula::readFormula().
|
inlineoverridevirtualinherited |
Implements bpp::PhyloLikelihoodSetInterface.
Definition at line 175 of file PhyloLikelihoodSet.h.
References bpp::AbstractPhyloLikelihoodSet::pPhyloCont_.
|
pure virtualinherited |
Implemented in bpp::AbstractPhyloLikelihoodSet.
double AlignedPhyloLikelihoodMixture::getPhyloProb | ( | size_t | index | ) | const |
Get the probability of a phylolikelihood.
Definition at line 74 of file AlignedPhyloLikelihoodMixture.cpp.
Vdouble AlignedPhyloLikelihoodMixture::getPhyloProbabilities | ( | ) | const |
Get the probabilities of the simplex.
Definition at line 69 of file AlignedPhyloLikelihoodMixture.cpp.
Referenced by bpp::PhylogeneticsApplicationTools::printAnalysisInformation().
|
pure virtualinherited |
Get the independent parameters associated to the rate distribution(s).
Implemented in bpp::SingleProcessPhyloLikelihood, bpp::AbstractParametrizableSequencePhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, and bpp::OnABranchPhyloLikelihood.
|
overridevirtualinherited |
Get the parameters associated to the rate distribution(s).
Implements bpp::PhyloLikelihoodInterface.
Definition at line 129 of file PhyloLikelihoodSet.cpp.
References bpp::AbstractPhyloLikelihoodSet::getPhyloLikelihood(), bpp::ParameterList::includeParameters(), and bpp::AbstractPhyloLikelihoodSet::nPhylo_.
|
pure virtualinherited |
Get the independent parameters associated to the root frequencies(s).
Implemented in bpp::SingleProcessPhyloLikelihood, bpp::AbstractParametrizableSequencePhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, and bpp::OnABranchPhyloLikelihood.
|
overridevirtualinherited |
Get the parameters associated to the root frequencies(s).
Implements bpp::PhyloLikelihoodInterface.
Definition at line 140 of file PhyloLikelihoodSet.cpp.
References bpp::AbstractPhyloLikelihoodSet::getPhyloLikelihood(), bpp::ParameterList::includeParameters(), and bpp::AbstractPhyloLikelihoodSet::nPhylo_.
|
inlineoverridevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 155 of file AbstractPhyloLikelihood.h.
|
inlineoverridevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 160 of file AbstractPhyloLikelihood.h.
References bpp::convert(), and bpp::AbstractPhyloLikelihood::secondOrderDerivativeNode().
|
pure virtualinherited |
Get the independent parameters associated to substitution model(s).
Implemented in bpp::SingleProcessPhyloLikelihood, bpp::AbstractParametrizableSequencePhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, and bpp::OnABranchPhyloLikelihood.
|
overridevirtualinherited |
Get the parameters associated to substitution model(s).
Implements bpp::PhyloLikelihoodInterface.
Definition at line 118 of file PhyloLikelihoodSet.cpp.
References bpp::AbstractPhyloLikelihoodSet::getPhyloLikelihood(), bpp::ParameterList::includeParameters(), and bpp::AbstractPhyloLikelihoodSet::nPhylo_.
|
inlineoverridevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 124 of file AbstractPhyloLikelihood.h.
References bpp::convert(), bpp::AbstractPhyloLikelihood::getLikelihoodNode(), and bpp::AbstractPhyloLikelihood::minusLogLik_.
|
inlineoverridevirtualinherited |
Implements bpp::PhyloLikelihoodSetInterface.
Definition at line 164 of file PhyloLikelihoodSet.h.
References bpp::AbstractPhyloLikelihoodSet::nPhylo_.
Referenced by bpp::PhyloLikelihoodFormula::readFormula().
|
pure virtualinherited |
Implemented in bpp::AbstractPhyloLikelihoodSet.
|
pure virtualinherited |
Implemented in bpp::SingleProcessPhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, bpp::OneProcessSequencePhyloLikelihood, bpp::OnABranchPhyloLikelihood, bpp::MultiProcessSequencePhyloLikelihood, and bpp::AbstractPhyloLikelihood.
|
inlineoverridevirtualinherited |
Reimplemented from bpp::AbstractPhyloLikelihood.
Definition at line 197 of file PhyloLikelihoodSet.h.
References bpp::AbstractPhyloLikelihoodSet::getPhyloLikelihood(), and bpp::AbstractPhyloLikelihoodSet::nPhylo_.
|
inlineoverridevirtual |
Implements bpp::PhyloLikelihoodInterface.
Definition at line 76 of file AlignedPhyloLikelihoodMixture.h.
References likCal_.
|
inlineprotected |
Definition at line 59 of file AlignedPhyloLikelihoodMixture.h.
References likCal_, bpp::AbstractAlignedPhyloLikelihoodSet::operator=(), and simplex_.
|
inlineinherited |
Definition at line 168 of file AbstractPhyloLikelihood.h.
References bpp::AbstractPhyloLikelihood::accessVariableNode(), bpp::AbstractPhyloLikelihood::context_, bpp::AbstractPhyloLikelihood::firstOrderDerivativeNode(), and bpp::AbstractPhyloLikelihood::secondOrderDerivativeNodes_.
Referenced by bpp::AbstractPhyloLikelihood::getSecondOrderDerivative().
|
inlineprotectedinherited |
Definition at line 173 of file AlignedPhyloLikelihood.h.
References bpp::AbstractAlignedPhyloLikelihood::nbSites_.
Referenced by bpp::AbstractAlignedPhyloLikelihoodSet::AbstractAlignedPhyloLikelihoodSet(), bpp::AbstractAlignedPhyloLikelihoodSet::addPhyloLikelihood(), and bpp::AbstractSingleDataPhyloLikelihood::setData().
|
inlineoverridevirtualinherited |
Implements bpp::SecondOrderDerivable.
Definition at line 95 of file AbstractPhyloLikelihood.h.
References bpp::SecondOrderDerivable::setParametersValues().
void AlignedPhyloLikelihoodMixture::setPhyloProb | ( | Simplex const & | simplex | ) |
Set the probabilities of the simplex.
Definition at line 87 of file AlignedPhyloLikelihoodMixture.cpp.
References bpp::Simplex::getParameters(), and simplex_.
|
inlineinherited |
Share Parameters, that are DF_parameters.
Definition at line 90 of file AbstractPhyloLikelihood.h.
References bpp::SecondOrderDerivable::getParameters_(), and bpp::ParameterList::shareParameters().
Referenced by bpp::AbstractPhyloLikelihood::AbstractPhyloLikelihood(), and bpp::AbstractPhyloLikelihood::operator=().
|
protectedinherited |
Definition at line 34 of file AbstractPhyloLikelihood.h.
Referenced by bpp::AbstractPhyloLikelihoodSet::addPhyloLikelihood(), bpp::AbstractPhyloLikelihood::context(), bpp::AbstractPhyloLikelihood::firstOrderDerivativeNode(), bpp::OnABranchPhyloLikelihood::firstOrderDerivativeVector(), bpp::OneProcessSequencePhyloLikelihood::firstOrderDerivativeVector(), bpp::SingleProcessPhyloLikelihood::firstOrderDerivativeVector(), bpp::PhyloLikelihoodFormula::makeLikelihoodsFromOperator(), bpp::AbstractPhyloLikelihood::operator=(), bpp::AbstractPhyloLikelihood::secondOrderDerivativeNode(), bpp::OnABranchPhyloLikelihood::secondOrderDerivativeVector(), bpp::OneProcessSequencePhyloLikelihood::secondOrderDerivativeVector(), and bpp::SingleProcessPhyloLikelihood::secondOrderDerivativeVector().
|
mutableprotectedinherited |
For Dataflow computing.
Definition at line 44 of file AbstractPhyloLikelihood.h.
Referenced by bpp::AbstractPhyloLikelihood::firstOrderDerivativeNode().
|
mutableprivate |
Aligned LikelihoodCalculation to store DF nodes
Definition at line 37 of file AlignedPhyloLikelihoodMixture.h.
Referenced by alignedLikelihoodCalculation(), AlignedPhyloLikelihoodMixture(), getAlignedLikelihoodCalculation(), getLikelihoodCalculation(), likelihoodCalculation(), and operator=().
|
mutableprotectedinherited |
the value
Definition at line 39 of file AbstractPhyloLikelihood.h.
Referenced by bpp::AbstractPhyloLikelihood::getValue(), and bpp::AbstractPhyloLikelihood::operator=().
|
protectedinherited |
Definition at line 111 of file AlignedPhyloLikelihood.h.
Referenced by AlignedPhyloLikelihoodMixture(), bpp::AbstractAlignedPhyloLikelihood::getNumberOfSites(), bpp::MixtureProcessPhyloLikelihood::getPosteriorProbabilitiesPerSitePerProcess(), bpp::AbstractAlignedPhyloLikelihood::operator=(), and bpp::AbstractAlignedPhyloLikelihood::setNumberOfSites().
|
protectedinherited |
vector of AbstractPhyloLikelihood numbers
Definition at line 79 of file PhyloLikelihoodSet.h.
Referenced by bpp::AbstractAlignedPhyloLikelihoodSet::AbstractAlignedPhyloLikelihoodSet(), bpp::AbstractPhyloLikelihoodSet::addPhyloLikelihood(), bpp::AbstractPhyloLikelihoodSet::fireParameterChanged(), bpp::AbstractPhyloLikelihoodSet::getBranchLengthParameters(), bpp::AbstractPhyloLikelihoodSet::getDerivableParameters(), bpp::AbstractPhyloLikelihoodSet::getNonDerivableParameters(), bpp::AbstractPhyloLikelihoodSet::getNumbersOfPhyloLikelihoods(), bpp::AbstractPhyloLikelihoodSet::getRateDistributionParameters(), bpp::AbstractPhyloLikelihoodSet::getRootFrequenciesParameters(), bpp::AbstractPhyloLikelihoodSet::getSubstitutionModelParameters(), bpp::AbstractPhyloLikelihoodSet::hasPhyloLikelihood(), bpp::AbstractPhyloLikelihoodSet::isInitialized(), bpp::PartitionProcessPhyloLikelihood::makeLikCal_(), and bpp::AbstractPhyloLikelihoodSet::operator=().
|
protectedinherited |
pointer to a PhyloLikelihoodContainer
Definition at line 74 of file PhyloLikelihoodSet.h.
Referenced by bpp::AbstractAlignedPhyloLikelihoodSet::getAlignedPhyloLikelihood(), bpp::AbstractPhyloLikelihoodSet::getPhyloContainer(), bpp::AbstractPhyloLikelihoodSet::getPhyloLikelihood(), bpp::AbstractPhyloLikelihoodSet::operator=(), and bpp::PartitionProcessPhyloLikelihood::PartitionProcessPhyloLikelihood().
|
mutableprotectedinherited |
Definition at line 48 of file AbstractPhyloLikelihood.h.
Referenced by bpp::AbstractPhyloLikelihood::secondOrderDerivativeNode().
|
private |
DF simplex
Definition at line 32 of file AlignedPhyloLikelihoodMixture.h.
Referenced by AlignedPhyloLikelihoodMixture(), operator=(), and setPhyloProb().
|
mutableprotectedinherited |
vector of pointers towards LikelihoodCalculation, used for the global likelihood.
Definition at line 85 of file PhyloLikelihoodSet.h.
Referenced by bpp::AbstractPhyloLikelihoodSet::addPhyloLikelihood(), bpp::PartitionProcessPhyloLikelihood::makeLikCal_(), and bpp::AbstractPhyloLikelihoodSet::operator=().