5 #ifndef BPP_SEQ_ALPHABETINDEX_GRANTHAMAAVOLUMEINDEX_H 6 #define BPP_SEQ_ALPHABETINDEX_GRANTHAMAAVOLUMEINDEX_H 76 return volume_[
getAlphabet()->getStateIndex(state) - 1];
79 double getIndex(
const std::string& state)
const override 81 return volume_[
getAlphabet()->getStateIndex(state) - 1];
87 #endif // BPP_SEQ_ALPHABETINDEX_GRANTHAMAAVOLUMEINDEX_H double getIndex(const std::string &state) const override
Get the index associated to a state.
std::shared_ptr< const Alphabet > getAlphabet() const override
Get the alphabet associated to this index.
This alphabet is used to deal NumericAlphabet.
double getIndex(int state) const override
Get the index associated to a state.
virtual ~GranthamAAVolumeIndex()
Volume index used in Grantham (1974).
std::vector< double > volume_
GranthamAAVolumeIndex * clone() const override
const std::vector< double > & indexVector() const override