PairwiseScoreModelI
{
/*
+ * an arbitrary score to assign for identity of an unknown symbol
+ * (this is the value on the diagonal in the * column of the NCBI matrix)
+ * (though a case could be made for using the minimum diagonal value)
+ */
+ private static final int UNKNOWN_IDENTITY_SCORE = 1;
+
+ /*
* this fields records which gap character (if any) is used in the alphabet;
* space, dash or dot are recognised as gap symbols
*/
/*
* one or both symbols not found in the matrix
+ * currently scoring as 1 (for identity) or the minimum
+ * matrix score value (otherwise)
+ * (a case could be made for using minimum row/column value instead)
*/
- return c == d ? 1 : getMinimumScore();
+ return c == d ? UNKNOWN_IDENTITY_SCORE : getMinimumScore();
}
/**