5 #ifndef BPP_SEQ_ALPHABETINDEX_MIYATAAACHEMICALDISTANCE_H
6 #define BPP_SEQ_ALPHABETINDEX_MIYATAAACHEMICALDISTANCE_H
13 #include "../Alphabet/AlphabetExceptions.h"
71 double getIndex(
int state1,
int state2)
const override;
72 double getIndex(
const std::string& state1,
const std::string& state2)
const override;
Miyata et al. (1979) Amino-Acid chemical distance.
LinearMatrix< double > indexMatrix_
MiyataAAChemicalDistance()
void setSymmetric(bool yn)
void computeIndexMatrix_()
virtual ~MiyataAAChemicalDistance()
double getIndex(int state1, int state2) const override
Get the index associated to a pair of states.
MiyataAAChemicalDistance * clone() const override
MiyataAAChemicalDistance & operator=(const MiyataAAChemicalDistance &md)
LinearMatrix< double > distanceMatrix_
const Matrix< double > & getIndexMatrix() const override
MiyataAAChemicalDistance(const MiyataAAChemicalDistance &md)
bool isSymmetric() const override
Virtual AlphabetIndex2 for proteic alphabet.
ProteicAlphabetIndex2 & operator=(const ProteicAlphabetIndex2 &pt)
This alphabet is used to deal NumericAlphabet.