5 #ifndef BPP_NUMERIC_HMM_AUTOCORRELATIONTRANSITIONMATRIX_H 6 #define BPP_NUMERIC_HMM_AUTOCORRELATIONTRANSITIONMATRIX_H 9 #include "../AbstractParameterAliasable.h" 48 double Pij(
size_t i,
size_t j)
const override 50 return (i == j) ? vAutocorrel_[i] : (1 - vAutocorrel_[i]) / static_cast<double>(
getNumberOfStates() - 1);
74 #endif // BPP_NUMERIC_HMM_AUTOCORRELATIONTRANSITIONMATRIX_H The matrix template interface.
void fireParameterChanged(const ParameterList ¶meters) override
Notify the class when one or several parameters have changed.
AutoCorrelationTransitionMatrix & operator=(const AutoCorrelationTransitionMatrix &hptm)
double Pij(size_t i, size_t j) const override
Get the transition probability between two states.
A partial implementation of the Parametrizable interface.
size_t getNumberOfStates() const
The parameter list object.
Partial implementation of HmmTransitionMatrix.
AutoCorrelationTransitionMatrix(std::shared_ptr< const HmmStateAlphabet > alph, const std::string &prefix="")
const Matrix< double > & getPij() const override
Get all transition probabilities as a matrix.
AutoCorrelationTransitionMatrix * clone() const override
Create a copy of this object and send a pointer to it.
const std::vector< double > & getEquilibriumFrequencies() const override
std::vector< double > vAutocorrel_
Describe the auto-correlation probabilities inside hidden states of a Hidden Markov Model...