5 #ifndef BPP_SEQ_ALPHABETINDEX_USERALPHABETINDEX1_H
6 #define BPP_SEQ_ALPHABETINDEX_USERALPHABETINDEX1_H
23 std::shared_ptr<const Alphabet>
alph_;
59 double getIndex(
const std::string& state)
const
64 void setIndex(
const std::string& state,
double val)
One dimensionnal alphabet index interface.
Alphabet index given by user.
double getIndex(int state) const
Get the index associated to a state.
std::vector< double > index_
double getIndex(const std::string &state) const
Get the index associated to a state.
void setIndex(int state, double val)
virtual ~UserAlphabetIndex1()
UserAlphabetIndex1(std::shared_ptr< const Alphabet > alph)
const Alphabet & alphabet() const
Get the alphabet associated to this index.
void setIndex(const std::string &state, double val)
const std::vector< double > & indexVector() const
UserAlphabetIndex1 & operator=(const UserAlphabetIndex1 &uAlph)
std::shared_ptr< const Alphabet > getAlphabet() const
Get the alphabet associated to this index.
UserAlphabetIndex1 * clone() const override
std::shared_ptr< const Alphabet > alph_
UserAlphabetIndex1(const UserAlphabetIndex1 &uAlph)
This alphabet is used to deal NumericAlphabet.