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