com.wcohen.ss
Class AffineGap
java.lang.Object
com.wcohen.ss.AbstractStringDistance
com.wcohen.ss.AffineGap
- All Implemented Interfaces:
- StringDistance, StringDistanceLearner
- Direct Known Subclasses:
- MongeElkan
public class AffineGap
- extends AbstractStringDistance
Affine-gap 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, toString, wait, wait, wait |
AffineGap
public AffineGap()
AffineGap
public AffineGap(CharMatchScore charMatchScore,
double openGapScore,
double extendGapScore,
double lowerBound)
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
main
public static void main(java.lang.String[] argv)