5 #include "../../Text/TextTools.h" 6 #include "../Matrix/MatrixTools.h" 7 #include "../VectorTools.h" 20 for (
size_t i = 0; i < size; ++i)
36 AbstractParametrizable::operator=(hptm);
52 for (
size_t j = 0; j < pls.
size(); ++j)
68 for (
size_t i = 0; i <
vSimplex_.size(); ++i)
70 for (
size_t j = 0; j <
vSimplex_[i].dimension(); ++j)
91 for (
size_t i = 0; i < salph; ++i)
106 for (
size_t i = 0; i < salph; ++i)
108 vSimplex_[i].matchParametersValues(parameters);
The matrix template interface.
FullHmmTransitionMatrix & operator=(const FullHmmTransitionMatrix &hptm)
void fireParameterChanged(const ParameterList ¶meters)
From AbstractParametrizable interface.
A partial implementation of the Parametrizable interface.
size_t getNumberOfStates() const
const Matrix< double > & getPij() const
Get all transition probabilities as a matrix.
FullHmmTransitionMatrix(std::shared_ptr< const HmmStateAlphabet > alph, const std::string &prefix="")
This class is designed to facilitate the manipulation of parameters.
Describe the transition probabilities between hidden states of a Hidden Markov Model.
A Simplex object, used to define sets of probabilities that sum 1.
The parameter list object.
RowMatrix< double > tmpmat_
Wrong size exception class.
Partial implementation of HmmTransitionMatrix.
bool matchParametersValues(const ParameterList ¶meters) override
Update the parameters from parameters.
ParameterList * clone() const
Create a copy of this object and send a pointer to it.
virtual const std::string & getName() const
Get the name of this parameter.
virtual void setName(const std::string &name)
Set the name of this parameter.
virtual void addParameter(const Parameter ¶m)
Add a new parameter at the end of the list.
virtual std::vector< Scalar > row(size_t i) const =0
void setTransitionProbabilities(const Matrix< double > &mat)
Set the matrix of the transition probabilities.
virtual size_t getNumberOfRows() const =0
std::string toString(T t)
General template method to convert to a string.
AbstractHmmTransitionMatrix & operator=(const AbstractHmmTransitionMatrix &hptm)
std::vector< Simplex > vSimplex_
const std::vector< double > & getEquilibriumFrequencies() const
const ParameterList & getParameters() const override
Get all parameters available.
virtual void addParameters_(const ParameterList ¶meters)