@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") public class CanberraDistanceFunction extends AbstractVectorDoubleDistanceFunction implements SpatialPrimitiveDoubleDistanceFunction<NumberVector<?>>
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<?> o1,
NumberVector<?> o2)
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.
|
<T extends NumberVector<?>> |
instantiate(Relation<T> relation)
Instantiate with a database to get the actual distance query.
|
DoubleDistance |
minDist(SpatialComparable mbr1,
SpatialComparable mbr2)
Computes the distance between the two given MBRs according to this distance
function.
|
distance, getDistanceFactory, getInputTypeRestriction
isMetric, isSymmetric
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
distance, getInputTypeRestriction
getDistanceFactory, isMetric, isSymmetric
public static final CanberraDistanceFunction STATIC
public double doubleDistance(NumberVector<?> o1, NumberVector<?> o2)
PrimitiveDoubleDistanceFunction
doubleDistance
in interface PrimitiveDoubleDistanceFunction<NumberVector<?>>
o1
- first Objecto2
- second Objectpublic double doubleMinDist(SpatialComparable mbr1, SpatialComparable mbr2)
SpatialPrimitiveDoubleDistanceFunction
doubleMinDist
in interface SpatialPrimitiveDoubleDistanceFunction<NumberVector<?>>
mbr1
- the first MBR objectmbr2
- the second MBR objectpublic DoubleDistance minDist(SpatialComparable mbr1, SpatialComparable mbr2)
SpatialPrimitiveDistanceFunction
minDist
in interface SpatialPrimitiveDistanceFunction<NumberVector<?>,DoubleDistance>
mbr1
- the first MBR objectmbr2
- the second MBR objectpublic <T extends NumberVector<?>> SpatialDistanceQuery<T,DoubleDistance> instantiate(Relation<T> relation)
AbstractPrimitiveDistanceFunction
instantiate
in interface DistanceFunction<NumberVector<?>,DoubleDistance>
instantiate
in interface SpatialPrimitiveDistanceFunction<NumberVector<?>,DoubleDistance>
instantiate
in class AbstractPrimitiveDistanceFunction<NumberVector<?>,DoubleDistance>
relation
- Representation