W(xi, yi) is the amino acid substitution matrix, e.g., BLOSUM35, providing a measure of how conservative substitutions are. The peptide-similarity score for the reference peptide x spans the interval: