5 #ifndef BPP_SEQ_ALPHABETINDEX_SIMPLESCORE_H
6 #define BPP_SEQ_ALPHABETINDEX_SIMPLESCORE_H
13 #include "../Alphabet/Alphabet.h"
14 #include "../Alphabet/AlphabetExceptions.h"
62 double getIndex(
int state1,
int state2)
const override;
63 double getIndex(
const std::string& state1,
const std::string& state2)
const override;
Two dimensionnal alphabet index interface.
Simple Substitution Matrix, with match and mismatch penalties.
SimpleScore * clone() const override
std::shared_ptr< const Alphabet > getAlphabet() const override
Get the alphabet associated to this index.
double getIndex(int state1, int state2) const override
Get the index associated to a pair of states.
const Matrix< double > & getIndexMatrix() const override
SimpleScore(const Alphabet *alphabet, double match, double mismatch)
Build a new simpleScore object.
std::shared_ptr< const Alphabet > alphabet_
const Alphabet & alphabet() const override
Get the alphabet associated to this index.
bool isSymmetric() const override
LinearMatrix< double > distanceMatrix_
SimpleScore & operator=(const SimpleScore &sc)
SimpleScore(const SimpleScore &sc)
This alphabet is used to deal NumericAlphabet.