public double compute(int i,int j) { if (i==0) return -j*gapCost; if (j==0) return -i*gapCost; return max3( get(i-1,j-1) + charMatchScore.matchScore( sAt(i), tAt(j) ), get(i-1, j) - gapCost, get(i, j-1) - gapCost); } }
public double compute(int i,int j) { if (i==0) return -j*gapCost; if (j==0) return -i*gapCost; return max3( get(i-1,j-1) + charMatchScore.matchScore( sAt(i), tAt(j) ), get(i-1, j) - gapCost, get(i, j-1) - gapCost); } }
public double compute(int i,int j) { if (i==0) return -j*gapCost; if (j==0) return -i*gapCost; return max3( get(i-1,j-1) + charMatchScore.matchScore( sAt(i), tAt(j) ), get(i-1, j) - gapCost, get(i, j-1) - gapCost); } }