5 #ifndef BPP_NUMERIC_HMM_ABSTRACTHMMTRANSITIONMATRIX_H 6 #define BPP_NUMERIC_HMM_ABSTRACTHMMTRANSITIONMATRIX_H 9 #include "../VectorTools.h" 23 std::shared_ptr<const HmmStateAlphabet>
alph_;
67 return alph_->getNumberOfStates();
78 std::vector<size_t>
sample(
size_t size)
const;
81 #endif // BPP_NUMERIC_HMM_ABSTRACTHMMTRANSITIONMATRIX_H
AbstractHmmTransitionMatrix(std::shared_ptr< const HmmStateAlphabet > alph, const std::string &prefix="")
const HmmStateAlphabet & hmmStateAlphabet() const
std::shared_ptr< const HmmStateAlphabet > getHmmStateAlphabet() const
size_t getNumberOfStates() const
RowMatrix< double > tmpmat_
Partial implementation of HmmTransitionMatrix.
std::shared_ptr< const HmmStateAlphabet > alph_
std::vector< size_t > sample(size_t size) const
sampling of a sequence of states. Starting point is sampled from the equilibrium distribution.
std::vector< double > Vdouble
void setHmmStateAlphabet(std::shared_ptr< const HmmStateAlphabet > stateAlphabet)
Set the new hidden state alphabet.
AbstractHmmTransitionMatrix & operator=(const AbstractHmmTransitionMatrix &hptm)
Describe the transition probabilities between hidden states of a Hidden Markov Model.