5 #ifndef BPP_SEQ_ALPHABETINDEX_GRANTHAMAACHEMICALDISTANCE_H
6 #define BPP_SEQ_ALPHABETINDEX_GRANTHAMAACHEMICALDISTANCE_H
13 #include "../Alphabet/AlphabetExceptions.h"
102 double getIndex(
int state1,
int state2)
const override;
103 double getIndex(
const std::string& state1,
const std::string& state2)
const override;
Grantham (1974) Amino-Acid chemical distance.
static short int SIGN_PC1
GranthamAAChemicalDistance(const GranthamAAChemicalDistance &gd)
LinearMatrix< double > indexMatrix_
LinearMatrix< double > distanceMatrix_
static short int SIGN_NONE
static short int SIGN_ARBITRARY
void setPC1Sign(bool yn)
The sign of the distance is computed using the coordinate on the first axis of a principal component ...
void computeIndexMatrix_()
const Matrix< double > & getIndexMatrix() const override
virtual ~GranthamAAChemicalDistance()
double getIndex(int state1, int state2) const override
Get the index associated to a pair of states.
void setSymmetric(bool yn)
GranthamAAChemicalDistance & operator=(const GranthamAAChemicalDistance &gd)
GranthamAAChemicalDistance * clone() const override
LinearMatrix< double > signMatrix_
GranthamAAChemicalDistance()
bool isSymmetric() const override
Virtual AlphabetIndex2 for proteic alphabet.
ProteicAlphabetIndex2 & operator=(const ProteicAlphabetIndex2 &pt)
This alphabet is used to deal NumericAlphabet.