
@Alias(value={"squaredeuclidean","de.lmu.ifi.dbs.elki.distance.distancefunction.SquaredEuclideanDistanceFunction"}) public class SquaredEuclideanDistanceFunction extends AbstractSpatialDoubleDistanceNorm
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
SquaredEuclideanDistanceFunction.Parameterizer
Parameterization class. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static SquaredEuclideanDistanceFunction | 
STATIC
Static instance. 
 | 
| Constructor and Description | 
|---|
SquaredEuclideanDistanceFunction()
Deprecated. 
 
Use static instance! 
 | 
| Modifier and Type | Method and Description | 
|---|---|
double | 
doubleDistance(NumberVector<?> v1,
              NumberVector<?> v2)
Provides the squared Euclidean distance between the given two vectors. 
 | 
double | 
doubleMinDist(SpatialComparable mbr1,
             SpatialComparable mbr2)
Computes the distance between the two given MBRs according to this
 distance function. 
 | 
protected double | 
doubleMinDistObject(SpatialComparable mbr,
                   NumberVector<?> v)  | 
double | 
doubleNorm(NumberVector<?> v)
Compute the norm of object obj as double value. 
 | 
boolean | 
equals(Object obj)  | 
boolean | 
isMetric()
Is this distance function metric (in particular, does it satisfy the
 triangle equation?) 
 | 
String | 
toString()  | 
instantiate, minDistnormdistance, getDistanceFactory, getInputTypeRestrictionisSymmetricclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdistance, getInputTypeRestrictiongetDistanceFactory, isSymmetricpublic static final SquaredEuclideanDistanceFunction STATIC
@Deprecated public SquaredEuclideanDistanceFunction()
public double doubleNorm(NumberVector<?> v)
DoubleNormv - Objectpublic double doubleDistance(NumberVector<?> v1, NumberVector<?> v2)
v1 - first Objectv2 - second Objectprotected double doubleMinDistObject(SpatialComparable mbr, NumberVector<?> v)
public double doubleMinDist(SpatialComparable mbr1, SpatialComparable mbr2)
SpatialPrimitiveDoubleDistanceFunctionmbr1 - the first MBR objectmbr2 - the second MBR objectpublic boolean isMetric()
DistanceFunctionisMetric in interface DistanceFunction<NumberVector<?>,DoubleDistance>isMetric in class AbstractPrimitiveDistanceFunction<NumberVector<?>,DoubleDistance>true when metric.