com.wcohen.ss
Class SmithWaterman
java.lang.Object
com.wcohen.ss.AbstractStringDistance
com.wcohen.ss.SmithWaterman
- All Implemented Interfaces:
- StringDistance, StringDistanceLearner
public class SmithWaterman
- extends AbstractStringDistance
Smith-Waterman string distance, following Durban et al.
Sec 2.3.
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 |
SmithWaterman
public SmithWaterman()
SmithWaterman
public SmithWaterman(CharMatchScore charMatchScore,
double gapCost)
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
- Specified by:
score
in class AbstractStringDistance
explainScore
public java.lang.String explainScore(StringWrapper s,
StringWrapper t)
- Description copied from class:
AbstractStringDistance
- This method needs to be implemented by subclasses.
- Specified by:
explainScore
in interface StringDistance
- Specified by:
explainScore
in class AbstractStringDistance
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
main
public static void main(java.lang.String[] argv)