40 #ifndef _USERALPHABETINDEX1_H_ 41 #define _USERALPHABETINDEX1_H_ 94 double getIndex(
const std::string& state)
const 99 void setIndex(
const std::string& state,
double val)
110 #endif // _USERALPHABETINDEX1_H_ std::vector< double > index_
double getIndex(int state) const
Get the index associated to a state.
std::vector< double > * getIndexVector() const
UserAlphabetIndex1(const Alphabet *alph)
This alphabet is used to deal NumericAlphabet.
virtual ~UserAlphabetIndex1()
double getIndex(const std::string &state) const
Get the index associated to a state.
UserAlphabetIndex1 * clone() const
One dimensionnal alphabet index interface.
virtual size_t getStateIndex(int state) const =0
UserAlphabetIndex1 & operator=(const UserAlphabetIndex1 &uAlph)
UserAlphabetIndex1(const UserAlphabetIndex1 &uAlph)
const Alphabet * getAlphabet() const
Get the alphabet associated to this index.
Alphabet index given by user.
void setIndex(int state, double val)
void setIndex(const std::string &state, double val)