/** * NeedlemanWunsch distance is a measure of the similarity between two strings, which we will refer to as the source * string (s) and the target string (t). The distance is the number of deletions, insertions, or substitutions * required to transform s into t. */ public static Long getNeedlemanWunsch_Distance( ValueMetaInterface metaA, Object dataA, ValueMetaInterface metaB, Object dataB ) { if ( dataA == null || dataB == null ) { return null; } return new Long( (int) new NeedlemanWunsch().score( dataA.toString(), dataB.toString() ) ); }
static public void main(String[] argv) { doMain(new NeedlemanWunsch(), argv); } }
static public void main(String[] argv) { doMain(new NeedlemanWunsch(), argv); } }
static public void main(String[] argv) { doMain(new NeedlemanWunsch(), argv); } }
break; case FuzzyMatchMeta.OPERATION_TYPE_NEEDLEMAN_WUNSH: cdistance = Math.abs( (int) new NeedlemanWunsch().score( usecacheValue, uselookupvalue ) ); break; default: