|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wcohen.ss.AbstractStringDistance com.wcohen.ss.NeedlemanWunsch
public class NeedlemanWunsch
Needleman-Wunsch string distance, following Durban et al. Sec 2.3.
Constructor Summary | |
---|---|
NeedlemanWunsch()
|
|
NeedlemanWunsch(CharMatchScore charMatchScore,
double gapCost)
|
Method Summary | |
---|---|
java.lang.String |
explainScore(StringWrapper s,
StringWrapper t)
This method needs to be implemented by subclasses. |
static void |
main(java.lang.String[] argv)
|
double |
score(StringWrapper s,
StringWrapper t)
This method needs to be implemented by subclasses. |
Methods inherited from class com.wcohen.ss.AbstractStringDistance |
---|
addExample, doMain, explainScore, getDistance, hasNextQuery, nextQuery, prepare, prepare, prepare, score, setDistanceInstancePool, setStringWrapperPool |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NeedlemanWunsch()
public NeedlemanWunsch(CharMatchScore charMatchScore, double gapCost)
Method Detail |
---|
public double score(StringWrapper s, StringWrapper t)
AbstractStringDistance
score
in interface StringDistance
score
in class AbstractStringDistance
public java.lang.String explainScore(StringWrapper s, StringWrapper t)
AbstractStringDistance
explainScore
in interface StringDistance
explainScore
in class AbstractStringDistance
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |