|
|||||||||
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 com.wcohen.ss.Levenstein com.wcohen.ss.ScaledLevenstein
public class ScaledLevenstein
Levenstein string distance. Levenstein distance is basically NeedlemanWunsch with unit costs for all operations.
Constructor Summary | |
---|---|
ScaledLevenstein()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] argv)
|
double |
score(StringWrapper s,
StringWrapper t)
This method needs to be implemented by subclasses. |
java.lang.String |
toString()
|
Methods inherited from class com.wcohen.ss.NeedlemanWunsch |
---|
explainScore |
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, wait, wait, wait |
Constructor Detail |
---|
public ScaledLevenstein()
Method Detail |
---|
public double score(StringWrapper s, StringWrapper t)
AbstractStringDistance
score
in interface StringDistance
score
in class NeedlemanWunsch
public java.lang.String toString()
toString
in class Levenstein
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |