com.wcohen.ss.api
Interface DistanceInstance

All Known Implementing Classes:
Blocker.Pair, CombinedStringDistanceLearner.MyDistanceInstance, CombinedStringDistanceLearner.MyMultiDistanceInstance

public interface DistanceInstance

An 'instance' for a StringDistance, analogous to an 'instance' for a classification learner. Consists of a pair of StringWrappers, a distance, and some labeling information.


Field Summary
static java.util.Comparator<DistanceInstance> INCREASING_DISTANCE
           
 
Method Summary
 StringWrapper getA()
           
 StringWrapper getB()
           
 double getDistance()
           
 boolean isCorrect()
           
 void setDistance(double distance)
           
 

Field Detail

INCREASING_DISTANCE

static final java.util.Comparator<DistanceInstance> INCREASING_DISTANCE
Method Detail

getA

StringWrapper getA()

getB

StringWrapper getB()

isCorrect

boolean isCorrect()

getDistance

double getDistance()

setDistance

void setDistance(double distance)