9 #include "../Alphabet/AlphabetTools.h"
21 distanceMatrix_(20, 20),
27 #include "__GranthamMatrixCode"
35 return NumTools::abs<double>(d);
52 for (
size_t i = 0; i < 20; ++i)
54 for (
size_t j = 0; j < 20; ++j)
62 for (
size_t i = 0; i < 20; ++i)
64 for (
size_t j = 0; j < 20; ++j)
static short int SIGN_PC1
LinearMatrix< double > indexMatrix_
LinearMatrix< double > distanceMatrix_
static short int SIGN_NONE
static short int SIGN_ARBITRARY
void computeIndexMatrix_()
double getIndex(int state1, int state2) const override
Get the index associated to a pair of states.
LinearMatrix< double > signMatrix_
GranthamAAChemicalDistance()
Virtual AlphabetIndex2 for proteic alphabet.
std::shared_ptr< const Alphabet > getAlphabet() const override
Get the alphabet associated to this index.
This alphabet is used to deal NumericAlphabet.