11 #include "../Alphabet/AlphabetTools.h"
16 MiyataAAChemicalDistance::MiyataAAChemicalDistance() :
18 distanceMatrix_(20, 20),
22 #include "__MiyataMatrixCode"
28 return sym_ ? NumTools::abs<double>(d) : d;
41 for (
unsigned int i = 0; i < 20; i++)
43 for (
unsigned int j = 0; j < 20; j++)
LinearMatrix< double > indexMatrix_
void computeIndexMatrix_()
double getIndex(int state1, int state2) const override
Get the index associated to a pair of states.
LinearMatrix< double > distanceMatrix_
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.