public class ManhattanDistance extends NormalizableDistance implements TechnicalInformationHandler
@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.
R_MAX, R_MIN, R_WIDTH
Constructor and Description |
---|
ManhattanDistance()
Constructs an Manhattan Distance object, Instances must be still set.
|
ManhattanDistance(Instances data)
Constructs an Manhattan Distance object and automatically initializes the
ranges.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRevision()
Returns the revision string.
|
TechnicalInformation |
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.
|
java.lang.String |
globalInfo()
Returns a string describing this object.
|
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
public ManhattanDistance()
public ManhattanDistance(Instances data)
data
- the instances the distance function should work onpublic java.lang.String globalInfo()
globalInfo
in class NormalizableDistance
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface TechnicalInformationHandler
public java.lang.String getRevision()
getRevision
in interface RevisionHandler