public abstract class AbstractStringDistanceFunction extends NormalizableDistance
R_MAX, R_MIN, R_WIDTH| Constructor and Description | 
|---|
| AbstractStringDistanceFunction()Constructor that doesn't set the data | 
| AbstractStringDistanceFunction(Instances data)Constructor that sets the data | 
| Modifier and Type | Method and Description | 
|---|---|
| double | distance(Instance first,
        Instance second,
        double cutOffValue,
        PerformanceStats stats)Calculates the distance between two instances. | 
attributeIndicesTipText, clean, distance, distance, distance, dontNormalizeTipText, getAttributeIndices, getDontNormalize, getInstances, getInvertSelection, getOptions, getRanges, globalInfo, initializeRanges, initializeRanges, initializeRanges, initializeRangesEmpty, inRanges, invertSelectionTipText, listOptions, postProcessDistances, rangesSet, setAttributeIndices, setDontNormalize, setInstances, setInvertSelection, setOptions, toString, update, updateRanges, updateRanges, updateRanges, updateRangesFirstequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRevisionpublic AbstractStringDistanceFunction()
public AbstractStringDistanceFunction(Instances data)
data - the set of instances that will be used for
 later distance comparisonspublic double distance(Instance first, Instance second, double cutOffValue, PerformanceStats stats)
distance in interface DistanceFunctiondistance in class NormalizableDistancefirst - the first instancesecond - the second instancecutOffValue - If the distance being calculated becomes larger than 
                    cutOffValue then the rest of the calculation is 
                    discarded.stats - the performance stats object