程序包 weka.core
类 AbstractStringDistanceFunction
java.lang.Object
weka.core.NormalizableDistance
weka.core.AbstractStringDistanceFunction
- 所有已实现的接口:
Serializable
,DistanceFunction
,OptionHandler
,RevisionHandler
- 直接已知子类:
EditDistance
Represents the abstract ancestor for string-based distance functions, like
EditDistance.
- 版本:
- $Revision: 1.1 $
- 作者:
- Bruno Woltzenlogel Paleo
- 另请参阅:
-
字段概要
从类继承的字段 weka.core.NormalizableDistance
R_MAX, R_MIN, R_WIDTH
-
构造器概要
构造器构造器说明Constructor that doesn't set the dataConstructor that sets the data -
方法概要
修饰符和类型方法说明double
distance
(Instance first, Instance second, double cutOffValue, PerformanceStats stats) Calculates the distance between two instances.从类继承的方法 weka.core.NormalizableDistance
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, updateRangesFirst
从接口继承的方法 weka.core.RevisionHandler
getRevision
-
构造器详细资料
-
AbstractStringDistanceFunction
public AbstractStringDistanceFunction()Constructor that doesn't set the data -
AbstractStringDistanceFunction
Constructor that sets the data- 参数:
data
- the set of instances that will be used for later distance comparisons
-
-
方法详细资料
-
distance
Calculates the distance between two instances. Offers speed up (if the distance function class in use supports it) in nearest neighbour search by taking into account the cutOff or maximum distance. Depending on the distance function class, post processing of the distances by postProcessDistances(double []) may be required if this function is used.- 指定者:
distance
在接口中DistanceFunction
- 覆盖:
distance
在类中NormalizableDistance
- 参数:
first
- 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- 返回:
- the distance between the two given instances or Double.POSITIVE_INFINITY if the distance being calculated becomes larger than cutOffValue.
-