public double compute(int i,int j) { if (i==0 || j==0) return 0; return max3( lowerBound, m.get(i,j-1) + openGapScore, it.get(i,j-1) + extendGapScore ); } }
public double compute(int i,int j) { if (i==0 || j==0) return 0; double matchScore = charMatchScore.matchScore( sAt(i), tAt(j) ); return max4( lowerBound, m.get(i-1,j-1) + matchScore, is.get(i-1,j-1) + matchScore, it.get(i=1,j-1) + matchScore ); } protected class InsertSMatrix extends MemoMatrix {
public double compute(int i,int j) { if (i==0 || j==0) return 0; double matchScore = charMatchScore.matchScore( sAt(i), tAt(j) ); return max4( lowerBound, m.get(i-1,j-1) + matchScore, is.get(i-1,j-1) + matchScore, it.get(i=1,j-1) + matchScore ); } protected class InsertSMatrix extends MemoMatrix {
public double compute(int i,int j) { if (i==0 || j==0) return 0; double matchScore = charMatchScore.matchScore( sAt(i), tAt(j) ); return max4( lowerBound, m.get(i-1,j-1) + matchScore, is.get(i-1,j-1) + matchScore, it.get(i=1,j-1) + matchScore ); } protected class InsertSMatrix extends MemoMatrix {
public double compute(int i,int j) { if (i==0 || j==0) return 0; return max3( lowerBound, m.get(i,j-1) + openGapScore, it.get(i,j-1) + extendGapScore ); } }
public double compute(int i,int j) { if (i==0 || j==0) return 0; return max3( lowerBound, m.get(i,j-1) + openGapScore, it.get(i,j-1) + extendGapScore ); } }