com.wcohen.ss
Class CharMatchScore

java.lang.Object
  extended by com.wcohen.ss.CharMatchScore

public abstract class CharMatchScore
extends java.lang.Object

Abstract distance between characters.


Field Summary
static CharMatchScore DIST_01
          Scores match as 0, mismatch as -1.
static CharMatchScore DIST_21
          Scores match as +2, mismatch as -1.
 
Constructor Summary
CharMatchScore()
           
 
Method Summary
abstract  double matchScore(char c, char d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIST_01

public static CharMatchScore DIST_01
Scores match as 0, mismatch as -1.


DIST_21

public static CharMatchScore DIST_21
Scores match as +2, mismatch as -1.

Constructor Detail

CharMatchScore

public CharMatchScore()
Method Detail

matchScore

public abstract double matchScore(char c,
                                  char d)