@Reference(authors="G. N. Lance, W. T. Williams", title="Computer programs for hierarchical polythetic classification (similarity analysis).", booktitle="Computer Journal, Volume 9, Issue 1", url="http://comjnl.oxfordjournals.org/content/9/1/60.short") @Alias(value="canberra") public class CanberraDistanceFunction extends AbstractSpatialDoubleDistanceFunction
Reference:
G. N. Lance, W. T. Williams
Computer programs for hierarchical polythetic classification ("similarity
analysis")
In: Computer Journal, Volume 9, Issue 1
Modifier and Type | Class and Description |
---|---|
static class |
CanberraDistanceFunction.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static CanberraDistanceFunction |
STATIC
Static instance.
|
Modifier | Constructor and Description |
---|---|
protected |
CanberraDistanceFunction()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
doubleDistance(NumberVector<?> v1,
NumberVector<?> v2)
Computes the distance between two given Objects according to this distance
function.
|
double |
doubleMinDist(SpatialComparable mbr1,
SpatialComparable mbr2)
Computes the distance between the two given MBRs according to this
distance function.
|
boolean |
isMetric()
Is this distance function metric (in particular, does it satisfy the
triangle equation?)
|
instantiate, minDist
dimensionality, dimensionality, dimensionality, dimensionality, distance, getDistanceFactory, getInputTypeRestriction
isSymmetric
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
distance, getInputTypeRestriction
getDistanceFactory, isSymmetric
public static final CanberraDistanceFunction STATIC
public double doubleDistance(NumberVector<?> v1, NumberVector<?> v2)
PrimitiveDoubleDistanceFunction
v1
- first Objectv2
- second Objectpublic double doubleMinDist(SpatialComparable mbr1, SpatialComparable mbr2)
SpatialPrimitiveDoubleDistanceFunction
mbr1
- the first MBR objectmbr2
- the second MBR objectpublic boolean isMetric()
DistanceFunction
isMetric
in interface DistanceFunction<NumberVector<?>,DoubleDistance>
isMetric
in class AbstractPrimitiveDistanceFunction<NumberVector<?>,DoubleDistance>
true
when metric.