程序包 weka.core
类 ManhattanDistance
java.lang.Object
weka.core.NormalizableDistance
weka.core.ManhattanDistance
- 所有已实现的接口:
Serializable
,DistanceFunction
,OptionHandler
,RevisionHandler
,TechnicalInformationHandler
Implements the Manhattan distance (or Taxicab geometry). The distance between two points is the sum of the (absolute) differences of their coordinates.
For more information, see:
Wikipedia. Taxicab geometry. URL http://en.wikipedia.org/wiki/Taxicab_geometry. BibTeX:
For more information, see:
Wikipedia. Taxicab geometry. URL http://en.wikipedia.org/wiki/Taxicab_geometry. BibTeX:
@misc{missing_id, author = {Wikipedia}, title = {Taxicab geometry}, URL = {http://en.wikipedia.org/wiki/Taxicab_geometry} }Valid options are:
-D Turns off the normalization of attribute values in distance calculation.
-R <col1,col2-col4,...> Specifies list of columns to used in the calculation of the distance. 'first' and 'last' are valid indices. (default: first-last)
-V Invert matching sense of column indices.
- 版本:
- $Revision: 1.2 $
- 作者:
- Fracpete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
字段概要
从类继承的字段 weka.core.NormalizableDistance
R_MAX, R_MIN, R_WIDTH
-
构造器概要
构造器构造器说明Constructs an Manhattan Distance object, Instances must be still set.ManhattanDistance
(Instances data) Constructs an Manhattan Distance object and automatically initializes the ranges. -
方法概要
修饰符和类型方法说明Returns the revision string.Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.Returns a string describing this object.从类继承的方法 weka.core.NormalizableDistance
attributeIndicesTipText, clean, distance, distance, distance, distance, dontNormalizeTipText, getAttributeIndices, getDontNormalize, getInstances, getInvertSelection, getOptions, getRanges, initializeRanges, initializeRanges, initializeRanges, initializeRangesEmpty, inRanges, invertSelectionTipText, listOptions, postProcessDistances, rangesSet, setAttributeIndices, setDontNormalize, setInstances, setInvertSelection, setOptions, toString, update, updateRanges, updateRanges, updateRanges, updateRangesFirst
-
构造器详细资料
-
ManhattanDistance
public ManhattanDistance()Constructs an Manhattan Distance object, Instances must be still set. -
ManhattanDistance
Constructs an Manhattan Distance object and automatically initializes the ranges.- 参数:
data
- the instances the distance function should work on
-
-
方法详细资料
-
globalInfo
Returns a string describing this object.- 指定者:
globalInfo
在类中NormalizableDistance
- 返回:
- a description of the evaluator suitable for displaying in the explorer/experimenter gui
-
getTechnicalInformation
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.- 指定者:
getTechnicalInformation
在接口中TechnicalInformationHandler
- 返回:
- the technical information about this class
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-