42 #include "../../Text/TextTools.h" 44 #include "../Matrix/MatrixTools.h" 45 #include "../VectorTools.h" 57 for (
size_t i=0; i<size; i++)
61 for (
size_t j=0; j<pl.
size(); j++)
73 vSimplex_(hptm.vSimplex_)
80 AbstractParametrizable::operator=(hptm);
96 for (
size_t j=0; j<pls.
size(); j++)
111 for (
size_t i=0; i<
vSimplex_.size(); i++)
112 for (
size_t j=0; j<
vSimplex_[i].dimension(); j++)
129 for (
size_t i = 0; i < salph; i++)
142 for (
size_t i=0; i< salph; i++)
146 for (
size_t j=0; j<pl.
size(); j++)
The matrix template interface.
FullHmmTransitionMatrix & operator=(const FullHmmTransitionMatrix &hptm)
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
This class allows to perform a correspondence analysis.
A partial implementation of the Parametrizable interface.
size_t getNumberOfStates() const
const Matrix< double > & getPij() const
Get all transition probabilities as a matrix.
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.
static std::string toString(T t)
General template method to convert to a string.
The parameter list object.
RowMatrix< double > tmpmat_
Wrong size exception class.
Partial implementation of HmmTransitionMatrix.
ParameterList * clone() const
Create a copy of this object and send a pointer to it.
bool matchParametersValues(const ParameterList ¶meters)
Update the parameters from parameters.
virtual const std::string & getName() const
Get the name of this parameter.
void addParameter_(Parameter *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
FullHmmTransitionMatrix(const HmmStateAlphabet *alph, const std::string &prefix="")
void setTransitionProbabilities(const Matrix< double > &mat)
Set the matrix of the transition probabilities.
virtual size_t getNumberOfRows() const =0
AbstractHmmTransitionMatrix & operator=(const AbstractHmmTransitionMatrix &hptm)
std::vector< Simplex > vSimplex_
const std::vector< double > & getEquilibriumFrequencies() const
double getParameterValue(const std::string &name) const
Get the value for parameter of name 'name'.