@Test public void test2(){ String str1 = "Test String 1"; String str2 = "Test String 2"; double res = NeedlemanWunch.distance(str1,str2); Asserts.assertEquals(res, 0.96153846153846); }
public static double distance(int[] str1, int[] str2){ return needlemanWunch.getSimilarity(Transformations.convertIntArrayToString(str1), Transformations.convertIntArrayToString(str2)); }
NeedlemanWunch { public static double distance(int[] str1, int[] str2){ return needlemanWunch.getSimilarity(Transformations.convertIntArrayToString(str1), Transformations.convertIntArrayToString(str2)); } }
NeedlemanWunch { public static double distance(int[] str1, int[] str2){ return needlemanWunch.getSimilarity(Transformations.convertIntArrayToString(str1), Transformations.convertIntArrayToString(str2)); }  }
NeedlemanWunch { public static double distance(int[] str1, int[] str2){ return needlemanWunch.getSimilarity(Transformations.convertIntArrayToString(str1), Transformations.convertIntArrayToString(str2)); }  static double distance(int[] str1, int[] str2); static double distance(String str1, String str2); }
NeedlemanWunch { public static double distance(int[] str1, int[] str2){ return needlemanWunch.getSimilarity(Transformations.convertIntArrayToString(str1), Transformations.convertIntArrayToString(str2)); }  static double distance(int[] str1, int[] str2); static double distance(String str1, String str2); static uk.ac.shef.wit.simmetrics.similaritymetrics.NeedlemanWunch needlemanWunch; }