com.wcohen.ss
Class ScaledLevenstein

java.lang.Object
  extended by com.wcohen.ss.AbstractStringDistance
      extended by com.wcohen.ss.NeedlemanWunsch
          extended by com.wcohen.ss.Levenstein
              extended by com.wcohen.ss.ScaledLevenstein
All Implemented Interfaces:
StringDistance, StringDistanceLearner

public class ScaledLevenstein
extends Levenstein

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

ScaledLevenstein

public ScaledLevenstein()
Method Detail

score

public double score(StringWrapper s,
                    StringWrapper t)
Description copied from class: AbstractStringDistance
This method needs to be implemented by subclasses.

Specified by:
score in interface StringDistance
Overrides:
score in class NeedlemanWunsch

toString

public java.lang.String toString()
Overrides:
toString in class Levenstein

main

public static void main(java.lang.String[] argv)