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