40 #ifndef _GRANTHAMAAPOLARITYINDEX_H_ 41 #define _GRANTHAMAAPOLARITYINDEX_H_ 44 #include "../Alphabet/ProteicAlphabet.h" 108 return polarity_[
static_cast<size_t>(state)];
122 #endif // _GRANTHAMAAPOLARITYINDEX_H_ double getIndex(const std::string &state) const
Get the index associated to a state.
Polarity index used in Grantham (1974).
const Alphabet * getAlphabet() const
Get the alphabet associated to this index.
An alphabet exception thrown when trying to specify a bad char to the alphabet.
This alphabet is used to deal NumericAlphabet.
double getIndex(int state) const
Get the index associated to a state.
One dimensionnal alphabet index interface.
std::vector< double > * getIndexVector() const
virtual ~GranthamAAPolarityIndex()
GranthamAAPolarityIndex * clone() const
std::vector< double > polarity_
An alphabet exception thrown when trying to specify a bad int to the alphabet.
int charToInt(const std::string &state) const
Give the int description of a state given its string description.
GranthamAAPolarityIndex()