public class ChebyshevDistance extends NormalizableDistance implements TechnicalInformationHandler
@misc{missing_id, author = {Wikipedia}, title = {Chebyshev distance}, URL = {http://en.wikipedia.org/wiki/Chebyshev_distance} }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.
m_ActiveIndices, m_AttributeIndices, m_Data, m_DontNormalize, m_Ranges, m_Validated, R_MAX, R_MIN, R_WIDTH
Constructor and Description |
---|
ChebyshevDistance()
Constructs an Chebyshev Distance object, Instances must be still set.
|
ChebyshevDistance(Instances data)
Constructs an Chebyshev Distance object and automatically initializes the
ranges.
|
Modifier and Type | Method and Description |
---|---|
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.
|
String |
globalInfo()
Returns a string describing this object.
|
protected double |
updateDistance(double currDist,
double diff)
Updates the current distance calculated so far with the new difference
between two attributes.
|
attributeIndicesTipText, difference, distance, distance, distance, distance, dontNormalizeTipText, getAttributeIndices, getDontNormalize, getInstances, getInvertSelection, getOptions, getRanges, initialize, initializeAttributeIndices, initializeRanges, initializeRanges, initializeRanges, initializeRangesEmpty, inRanges, invalidate, invertSelectionTipText, listOptions, norm, postProcessDistances, rangesSet, setAttributeIndices, setDontNormalize, setInstances, setInvertSelection, setOptions, toString, update, updateRanges, updateRanges, updateRanges, updateRangesFirst, validate
public ChebyshevDistance()
public ChebyshevDistance(Instances data)
data
- the instances the distance function should work onpublic String globalInfo()
globalInfo
in class NormalizableDistance
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface TechnicalInformationHandler
protected double updateDistance(double currDist, double diff)
updateDistance
in class NormalizableDistance
currDist
- the current distance calculated so fardiff
- the difference between two new attributesNormalizableDistance.difference(int, double, double)
public String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.