com.wcohen.secondstring
Class AffineGap
java.lang.Object
|
+--com.wcohen.secondstring.AbstractStringDistance
|
+--com.wcohen.secondstring.AffineGap
- All Implemented Interfaces:
- StringDistance
- Direct Known Subclasses:
- MongeElkan
- public class AffineGap
- extends AbstractStringDistance
Affine-gap string distance, following Durban et al.
Sec 2.3.
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)