bpp-phyl3
3.0.0
|
Emission probabilities in the context of DF phylolikeihoods. More...
#include <Bpp/Phyl/Likelihood/PhyloLikelihoods/HmmPhyloEmissionProbabilities.h>
Public Member Functions | |
HmmPhyloEmissionProbabilities (std::shared_ptr< HmmPhyloAlphabet > alphabet) | |
HmmPhyloEmissionProbabilities (const HmmPhyloEmissionProbabilities &hEP) | |
HmmPhyloEmissionProbabilities * | clone () const |
const HmmStateAlphabet * | getHmmStateAlphabet () const |
size_t | getNumberOfStates () const |
size_t | getNumberOfSites () const |
void | setHmmStateAlphabet (std::shared_ptr< HmmStateAlphabet > stateAlphabet) |
Set the new hidden state alphabet. More... | |
DataLik | operator() (size_t pos, size_t state) const |
Operator access to the emission probabilities. More... | |
ValueRef< MatrixLik > | getEmissionProbabilities () |
VectorLik | operator() (size_t pos) const |
Operator access to the emission probabilities. More... | |
size_t | getNumberOfPositions () const |
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::shared_ptr< HmmPhyloAlphabet > | phylAlph_ |
ValueRef< MatrixLik > | emProb_ |
size_t | nbSites_ |
ParameterList | parameters_ |
std::string | prefix_ |
Emission probabilities in the context of DF phylolikeihoods.
Definition at line 23 of file HmmPhyloEmissionProbabilities.h.
HmmPhyloEmissionProbabilities::HmmPhyloEmissionProbabilities | ( | std::shared_ptr< HmmPhyloAlphabet > | alphabet | ) |
Definition at line 10 of file HmmPhyloEmissionProbabilities.cpp.
References setHmmStateAlphabet().
Referenced by clone().
|
inline |
Definition at line 45 of file HmmPhyloEmissionProbabilities.h.
|
inlinevirtual |
Implements bpp::AbstractParametrizable.
Definition at line 53 of file HmmPhyloEmissionProbabilities.h.
References HmmPhyloEmissionProbabilities().
Definition at line 93 of file HmmPhyloEmissionProbabilities.h.
References emProb_.
|
inlinevirtual |
Implements bpp::HmmEmissionProbabilities_Eigen.
Definition at line 55 of file HmmPhyloEmissionProbabilities.h.
References phylAlph_.
|
inlinevirtual |
Implements bpp::HmmEmissionProbabilities_Eigen.
Definition at line 115 of file HmmPhyloEmissionProbabilities.h.
References nbSites_.
|
inline |
Definition at line 65 of file HmmPhyloEmissionProbabilities.h.
References nbSites_.
|
inline |
Definition at line 60 of file HmmPhyloEmissionProbabilities.h.
References phylAlph_.
|
inlinevirtual |
Operator access to the emission probabilities.
This is the fastest way to get the values, but no checking is performed on the indices. For debugging purpose, the getPhyloEmissionProbability would be a safer use.
pos | The position of the sequential data to consider. |
Implements bpp::HmmEmissionProbabilities_Eigen.
Definition at line 107 of file HmmPhyloEmissionProbabilities.h.
References emProb_.
|
inlinevirtual |
Operator access to the emission probabilities.
This is the fastest way to get the values, but no checking is performed on the indices. For debugging purpose, the getPhyloEmissionProbability would be a safer use.
pos | The position of the sequential data to consider. |
state | The index of the hidden state to consider, as defined by the HmmStateAlphabet object associated to this class |
Implements bpp::HmmEmissionProbabilities_Eigen.
Definition at line 88 of file HmmPhyloEmissionProbabilities.h.
References emProb_.
|
virtual |
Set the new hidden state alphabet.
stateAlphabet | The new state alphabet. |
UnvalidStateAlphabetException | if the new alphabet is incorrect (for instance is NULL pointer). |
Implements bpp::HmmEmissionProbabilities_Eigen.
Definition at line 21 of file HmmPhyloEmissionProbabilities.cpp.
References context_, emProb_, nbSites_, and phylAlph_.
Referenced by HmmPhyloEmissionProbabilities().
|
private |
Definition at line 28 of file HmmPhyloEmissionProbabilities.h.
Referenced by setHmmStateAlphabet().
Definition at line 38 of file HmmPhyloEmissionProbabilities.h.
Referenced by getEmissionProbabilities(), operator()(), and setHmmStateAlphabet().
|
private |
Definition at line 40 of file HmmPhyloEmissionProbabilities.h.
Referenced by getNumberOfPositions(), getNumberOfSites(), and setHmmStateAlphabet().
|
private |
Definition at line 30 of file HmmPhyloEmissionProbabilities.h.
Referenced by getHmmStateAlphabet(), getNumberOfStates(), and setHmmStateAlphabet().