bpp-phyl3
3.0.0
|
Hidden states alphabet. More...
#include <Bpp/Phyl/Likelihood/PhyloLikelihoods/HmmPhyloAlphabet.h>
Public Member Functions | |
HmmPhyloAlphabet (AlignedPhyloLikelihoodSetInterface &soap) | |
HmmPhyloAlphabet (MultiProcessSequencePhyloLikelihood &mpsp) | |
HmmPhyloAlphabet (const HmmPhyloAlphabet &hpa) | |
HmmPhyloAlphabet * | clone () const override |
virtual | ~HmmPhyloAlphabet () |
Context & | getContext () |
const Clonable & | getState (size_t stateIndex) const override |
const AlignedPhyloLikelihoodInterface & | alignedPhyloLikelihood (size_t stateIndex) const |
std::shared_ptr< const AlignedPhyloLikelihoodInterface > | getAlignedPhyloLikelihood (size_t stateIndex) const |
size_t | getNumberOfStates () const override |
size_t | getNumberOfSites () const |
bool | worksWith (const HmmStateAlphabet &stateAlphabet) const override |
Tell if this instance can work with the instance of alphabet given as input. More... | |
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 |
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 |
void | setNamespace (const std::string &prefix) 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 ParameterList & | getParameters_ ()=0 |
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 |
ParameterList & | getParameters_ () override |
Private Attributes | |
Context & | context_ |
std::vector< std::shared_ptr< AlignedPhyloLikelihoodInterface > > | vAP_ |
vector of aligned phylolikelihoods. These phylolikelihoods are not owned by the alphabet. More... | |
size_t | nbSites_ |
ParameterList | parameters_ |
std::string | prefix_ |
Hidden states alphabet.
Implementation of HmmStateAlphabet where Alphabet States are all the PhyloLikelihoods belonging to a AlignedPhyloLikelihoodSet.
Definition at line 24 of file HmmPhyloAlphabet.h.
|
inline |
Definition at line 40 of file HmmPhyloAlphabet.h.
References bpp::AlignedPhyloLikelihoodSetInterface::getAlignedPhyloLikelihood(), bpp::AlignedPhyloLikelihoodInterface::getNumberOfSites(), bpp::PhyloLikelihoodSetInterface::getNumbersOfPhyloLikelihoods(), bpp::AbstractParametrizable::includeParameters_(), nbSites_, and vAP_.
Referenced by clone().
|
inline |
Definition at line 58 of file HmmPhyloAlphabet.h.
References getContext(), bpp::MultiProcessSequencePhyloLikelihood::getLikelihoodCalculationForAProcess(), bpp::MultiProcessSequencePhyloLikelihood::getNumberOfSubstitutionProcess(), bpp::AbstractParametrizable::getParameters(), bpp::AbstractParametrizable::includeParameters_(), nbSites_, and vAP_.
|
inline |
Definition at line 83 of file HmmPhyloAlphabet.h.
|
inlinevirtual |
Definition at line 92 of file HmmPhyloAlphabet.h.
|
inline |
Definition at line 106 of file HmmPhyloAlphabet.h.
References vAP_.
|
inlineoverridevirtual |
Implements bpp::AbstractParametrizable.
Definition at line 90 of file HmmPhyloAlphabet.h.
References HmmPhyloAlphabet().
|
inline |
Definition at line 111 of file HmmPhyloAlphabet.h.
References vAP_.
|
inline |
Definition at line 94 of file HmmPhyloAlphabet.h.
References context_.
Referenced by HmmPhyloAlphabet().
|
inline |
Definition at line 121 of file HmmPhyloAlphabet.h.
References nbSites_.
|
inlineoverridevirtual |
Implements bpp::HmmStateAlphabet.
Definition at line 116 of file HmmPhyloAlphabet.h.
References vAP_.
|
inlineoverridevirtual |
stateIndex | The index of a hidden state. |
Implements bpp::HmmStateAlphabet.
Definition at line 101 of file HmmPhyloAlphabet.h.
References vAP_.
|
inlineoverridevirtual |
Tell if this instance can work with the instance of alphabet given as input.
In many case, this will return true if the pointer provided as argument refers to this object.
stateAlphabet | The alphabet to check. |
Implements bpp::HmmStateAlphabet.
Definition at line 134 of file HmmPhyloAlphabet.h.
|
private |
Definition at line 29 of file HmmPhyloAlphabet.h.
Referenced by getContext().
|
private |
Definition at line 37 of file HmmPhyloAlphabet.h.
Referenced by getNumberOfSites(), and HmmPhyloAlphabet().
|
private |
vector of aligned phylolikelihoods. These phylolikelihoods are not owned by the alphabet.
Definition at line 35 of file HmmPhyloAlphabet.h.
Referenced by alignedPhyloLikelihood(), getAlignedPhyloLikelihood(), getNumberOfStates(), getState(), and HmmPhyloAlphabet().