40 #ifndef _ALPHABETINDEX2_H_ 41 #define _ALPHABETINDEX2_H_ 43 #include "../Alphabet/Alphabet.h" 44 #include <Bpp/Clonable.h> 45 #include <Bpp/Numeric/Matrix/Matrix.h> 73 virtual double getIndex(
int state1,
int state2)
const = 0;
82 virtual double getIndex(
const std::string& state1,
const std::string& state2)
const = 0;
103 #endif // _ALPHABETINDEX2_H_ virtual Matrix< double > * getIndexMatrix() const =0
virtual AlphabetIndex2 * clone() const =0
This alphabet is used to deal NumericAlphabet.
virtual bool isSymmetric() const =0
virtual ~AlphabetIndex2()
Two dimensionnal alphabet index interface.
virtual double getIndex(int state1, int state2) const =0
Get the index associated to a pair of states.
virtual const Alphabet * getAlphabet() const =0
Get the alphabet associated to this index.