14 SimpleScore::SimpleScore(
const Alphabet* alphabet,
double match,
double mismatch) :
15 distanceMatrix_(alphabet->getSize(), alphabet->getSize()),
20 for (
size_t i = 0; i < n; ++i)
22 for (
size_t j = 0; j < n; ++j)
31 size_t stateIndex1 =
alphabet_->getStateIndex(state1) - 1;
32 size_t stateIndex2 =
alphabet_->getStateIndex(state2) - 1;
38 size_t stateIndex1 =
alphabet_->getStateIndex(state1) - 1;
39 size_t stateIndex2 =
alphabet_->getStateIndex(state2) - 1;
double getIndex(int state1, int state2) const override
Get the index associated to a pair of states.
std::shared_ptr< const Alphabet > alphabet_
LinearMatrix< double > distanceMatrix_
This alphabet is used to deal NumericAlphabet.