bpp-phyl3
3.0.0
|
PhyloLikelihoods based on Sequence Evolution class, ie for which there is a (set of) processes able to build a sequence. More...
#include <Bpp/Phyl/Likelihood/PhyloLikelihoods/SequencePhyloLikelihood.h>
Public Member Functions | |
virtual const SequenceEvolution & | sequenceEvolution () const =0 |
The Sequence Evolution. More... | |
virtual std::shared_ptr< const SequenceEvolution > | getSequenceEvolution () const =0 |
virtual const size_t | getSequenceEvolutionNumber () const =0 |
virtual LikelihoodCalculation & | likelihoodCalculation () const =0 |
virtual std::shared_ptr< LikelihoodCalculation > | getLikelihoodCalculation () const =0 |
virtual void | enableSecondOrderDerivatives (bool yn)=0 |
virtual bool | enableSecondOrderDerivatives () const=0 |
virtual double | getSecondOrderDerivative (const std::string &variable) const=0 |
virtual double | getSecondOrderDerivative (const std::string &variable1, const std::string &variable2) const=0 |
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 double | getFirstOrderDerivative (const std::string &variable) const=0 |
virtual double | df (const std::string &variable, const ParameterList ¶meters) |
virtual void | setParameters (const ParameterList ¶meters)=0 |
virtual double | getValue () const=0 |
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 |
The data functions | |
virtual void | setData (std::shared_ptr< const AlignmentDataInterface > sites, size_t nData=0)=0 |
Set the dataset for which the likelihood must be evaluated. More... | |
virtual std::shared_ptr< const AlignmentDataInterface > | getData () const =0 |
Get the dataset for which the likelihood must be evaluated. More... | |
virtual size_t | getNData () const =0 |
Get the number of dataset concerned. More... | |
virtual size_t | getNumberOfStates () const =0 |
Get the number the states. More... | |
virtual std::shared_ptr< const Alphabet > | getAlphabet () const =0 |
Get the alphabet associated to the dataset. More... | |
The data functions | |
virtual size_t | getNumberOfSites () const =0 |
Get the number of sites in the dataset. More... | |
The likelihood functions. | |
virtual AlignedLikelihoodCalculation & | alignedLikelihoodCalculation () const =0 |
virtual std::shared_ptr< AlignedLikelihoodCalculation > | getAlignedLikelihoodCalculation () const =0 |
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... | |
The data functions | |
virtual bool | isInitialized () const =0 |
virtual const Context & | context () const =0 |
virtual Context & | context ()=0 |
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... | |
Protected Member Functions | |
virtual | ~SequencePhyloLikelihoodInterface () |
SequencePhyloLikelihoodInterface * | clone () const override=0 |
virtual ParameterList & | getParameters_ ()=0 |
PhyloLikelihoods based on Sequence Evolution class, ie for which there is a (set of) processes able to build a sequence.
Interface
Definition at line 29 of file SequencePhyloLikelihood.h.
|
inlineprotectedvirtual |
Definition at line 33 of file SequencePhyloLikelihood.h.
|
pure virtualinherited |
Implemented in bpp::AutoCorrelationProcessPhyloLikelihood, bpp::SingleProcessPhyloLikelihood, bpp::PartitionProcessPhyloLikelihood, bpp::OneProcessSequencePhyloLikelihood, bpp::OnABranchPhyloLikelihood, bpp::MixtureProcessPhyloLikelihood, bpp::HmmProcessPhyloLikelihood, bpp::AutoCorrelationProcessPhyloLikelihood, bpp::AlignedPhyloLikelihoodMixture, bpp::AlignedPhyloLikelihoodHmm, bpp::AlignedPhyloLikelihoodProduct, and bpp::AlignedPhyloLikelihoodAutoCorrelation.
Referenced by bpp::AlignedPhyloLikelihoodMixture::AlignedPhyloLikelihoodMixture(), and bpp::AbstractAlignedPhyloLikelihood::getLikelihoodForASite().
|
overrideprotectedpure virtual |
Implements bpp::SingleDataPhyloLikelihoodInterface.
Implemented in bpp::AutoCorrelationProcessPhyloLikelihood, bpp::PartitionProcessPhyloLikelihood, bpp::OneProcessSequencePhyloLikelihood, bpp::MixtureProcessPhyloLikelihood, bpp::HmmProcessPhyloLikelihood, and bpp::AutoCorrelationProcessPhyloLikelihood.
|
pure virtualinherited |
Implemented in bpp::AbstractPhyloLikelihood.
|
pure virtualinherited |
Implemented in bpp::AbstractPhyloLikelihood.
|
pure virtualinherited |
Implemented in bpp::AutoCorrelationProcessPhyloLikelihood, bpp::SingleProcessPhyloLikelihood, bpp::PartitionProcessPhyloLikelihood, bpp::OneProcessSequencePhyloLikelihood, bpp::OnABranchPhyloLikelihood, bpp::MixtureProcessPhyloLikelihood, bpp::HmmProcessPhyloLikelihood, bpp::AutoCorrelationProcessPhyloLikelihood, bpp::AlignedPhyloLikelihoodMixture, bpp::AlignedPhyloLikelihoodHmm, bpp::AlignedPhyloLikelihoodProduct, and bpp::AlignedPhyloLikelihoodAutoCorrelation.
Referenced by bpp::AbstractAlignedPhyloLikelihood::getLikelihoodPerSite(), and bpp::AbstractAlignedPhyloLikelihood::getLogLikelihoodForASite().
|
pure virtualinherited |
Get the alphabet associated to the dataset.
Implemented in bpp::SingleProcessPhyloLikelihood, bpp::AbstractSequencePhyloLikelihood, bpp::OneProcessSequencePhyloLikelihood, and bpp::MultiProcessSequencePhyloLikelihood.
|
pure virtualinherited |
Get the independent branch lengths parameters.
Implemented in bpp::SingleProcessPhyloLikelihood, bpp::AbstractParametrizableSequencePhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, and bpp::OnABranchPhyloLikelihood.
Referenced by bpp::BppPhylogeneticsApplication::displayParameters().
|
pure virtualinherited |
Get the dataset for which the likelihood must be evaluated.
Implemented in bpp::SingleProcessPhyloLikelihood, bpp::PartitionProcessPhyloLikelihood, bpp::OneProcessSequencePhyloLikelihood, and bpp::MultiProcessSequencePhyloLikelihood.
Referenced by bpp::PhylogeneticsApplicationTools::printAnalysisInformation().
|
pure virtualinherited |
|
pure virtualinherited |
Implemented in bpp::AutoCorrelationProcessPhyloLikelihood, bpp::SingleProcessPhyloLikelihood, bpp::PartitionProcessPhyloLikelihood, bpp::OneProcessSequencePhyloLikelihood, bpp::OnABranchPhyloLikelihood, bpp::MixtureProcessPhyloLikelihood, bpp::HmmProcessPhyloLikelihood, bpp::AutoCorrelationProcessPhyloLikelihood, bpp::AlignedPhyloLikelihoodMixture, bpp::AlignedPhyloLikelihoodHmm, bpp::PhyloLikelihoodFormula, bpp::AlignedPhyloLikelihoodProduct, and bpp::AlignedPhyloLikelihoodAutoCorrelation.
Referenced by bpp::AbstractPhyloLikelihood::getLikelihoodNode().
|
pure virtualinherited |
Get the likelihood for a site.
site | The site index to analyse. |
Implemented in bpp::AbstractAlignedPhyloLikelihood.
Referenced by bpp::AbstractAlignedPhyloLikelihoodSet::getLikelihoodForASiteForAPhyloLikelihood().
|
pure virtualinherited |
Implemented in bpp::AbstractPhyloLikelihood.
|
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().
|
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().
|
pure virtualinherited |
Get the number of dataset concerned.
Implemented in bpp::AbstractSingleDataPhyloLikelihood.
Referenced by bpp::PhylogeneticsApplicationTools::printParameters().
|
pure virtualinherited |
|
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 |
Get the number the states.
Implemented in bpp::AbstractSingleDataPhyloLikelihood.
|
pure virtualinherited |
Get the independent parameters associated to the rate distribution(s).
Implemented in bpp::SingleProcessPhyloLikelihood, bpp::AbstractParametrizableSequencePhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, and bpp::OnABranchPhyloLikelihood.
|
pure virtualinherited |
Get the independent parameters associated to the root frequencies(s).
Implemented in bpp::SingleProcessPhyloLikelihood, bpp::AbstractParametrizableSequencePhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, and bpp::OnABranchPhyloLikelihood.
|
pure virtual |
Implemented in bpp::AbstractSequencePhyloLikelihood.
|
pure virtual |
Implemented in bpp::AbstractSequencePhyloLikelihood.
|
pure virtualinherited |
Get the independent parameters associated to substitution model(s).
Implemented in bpp::SingleProcessPhyloLikelihood, bpp::AbstractParametrizableSequencePhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, and bpp::OnABranchPhyloLikelihood.
|
pure virtualinherited |
Implemented in bpp::SingleProcessPhyloLikelihood, bpp::AbstractPhyloLikelihoodSet, bpp::OneProcessSequencePhyloLikelihood, bpp::OnABranchPhyloLikelihood, bpp::MultiProcessSequencePhyloLikelihood, and bpp::AbstractPhyloLikelihood.
|
pure virtualinherited |
Implemented in bpp::AutoCorrelationProcessPhyloLikelihood, bpp::SingleProcessPhyloLikelihood, bpp::PartitionProcessPhyloLikelihood, bpp::OneProcessSequencePhyloLikelihood, bpp::OnABranchPhyloLikelihood, bpp::MixtureProcessPhyloLikelihood, bpp::HmmProcessPhyloLikelihood, bpp::AutoCorrelationProcessPhyloLikelihood, bpp::AlignedPhyloLikelihoodMixture, bpp::AlignedPhyloLikelihoodHmm, bpp::PhyloLikelihoodFormula, bpp::AlignedPhyloLikelihoodProduct, and bpp::AlignedPhyloLikelihoodAutoCorrelation.
|
pure virtual |
The Sequence Evolution.
Implemented in bpp::AbstractSequencePhyloLikelihood.
|
pure virtualinherited |
Set the dataset for which the likelihood must be evaluated.
sites | The data set to use. |
nData | the number of the data |
Implemented in bpp::SingleProcessPhyloLikelihood, bpp::AbstractParametrizableSequencePhyloLikelihood, bpp::OneProcessSequencePhyloLikelihood, bpp::MultiProcessSequencePhyloLikelihood, bpp::AbstractSingleDataPhyloLikelihood, and bpp::PartitionProcessPhyloLikelihood.