com.wcohen.ss
Class AffineGap

java.lang.Object
  extended by com.wcohen.ss.AbstractStringDistance
      extended by 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.


Nested Class Summary
protected  class AffineGap.MatrixTrio
           
 
Constructor Summary
AffineGap()
           
AffineGap(CharMatchScore charMatchScore, double openGapScore, double extendGapScore, double lowerBound)
           
 
Method Summary
 java.lang.String explainScore(StringWrapper s, StringWrapper t)
          This method needs to be implemented by subclasses.
static void main(java.lang.String[] argv)
           
 double score(StringWrapper s, StringWrapper t)
          This method needs to be implemented by subclasses.
 
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
 

Constructor Detail

AffineGap

public AffineGap()

AffineGap

public AffineGap(CharMatchScore charMatchScore,
                 double openGapScore,
                 double extendGapScore,
                 double lowerBound)
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
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)