
public class WeightedEuclideanDistanceFunction extends WeightedLPNormDistanceFunction
LPNormDistanceFunction.Parameterizerweightsinvp, p, P_ID| Constructor and Description |
|---|
WeightedEuclideanDistanceFunction(double[] weights)
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.
|
double |
doubleNorm(NumberVector<?> v)
Compute the norm of object obj as double value.
|
private double |
doublePreDistance(NumberVector<?> v1,
NumberVector<?> v2,
int start,
int end,
double agg) |
private double |
doublePreDistanceMBR(SpatialComparable mbr1,
SpatialComparable mbr2,
int start,
int end,
double agg) |
private double |
doublePreDistanceVM(NumberVector<?> v,
SpatialComparable mbr,
int start,
int end,
double agg) |
private double |
doublePreNorm(NumberVector<?> v,
int start,
int end,
double agg) |
private double |
doublePreNormMBR(SpatialComparable mbr,
int start,
int end,
double agg) |
boolean |
equals(Object obj) |
getInputTypeRestrictiongetP, isMetric, toStringinstantiate, minDistnormdimensionality, dimensionality, dimensionality, dimensionality, distance, getDistanceFactoryisSymmetricclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdistancegetDistanceFactory, isSymmetricpublic WeightedEuclideanDistanceFunction(double[] weights)
weights - private final double doublePreDistance(NumberVector<?> v1, NumberVector<?> v2, int start, int end, double agg)
private final double doublePreDistanceVM(NumberVector<?> v, SpatialComparable mbr, int start, int end, double agg)
private final double doublePreDistanceMBR(SpatialComparable mbr1, SpatialComparable mbr2, int start, int end, double agg)
private final double doublePreNorm(NumberVector<?> v, int start, int end, double agg)
private final double doublePreNormMBR(SpatialComparable mbr, int start, int end, double agg)
public double doubleDistance(NumberVector<?> v1, NumberVector<?> v2)
PrimitiveDoubleDistanceFunctiondoubleDistance in interface PrimitiveDoubleDistanceFunction<NumberVector<?>>doubleDistance in class WeightedLPNormDistanceFunctionv1 - first Objectv2 - second Objectpublic double doubleNorm(NumberVector<?> v)
DoubleNormdoubleNorm in interface DoubleNorm<NumberVector<?>>doubleNorm in class WeightedLPNormDistanceFunctionv - Objectpublic double doubleMinDist(SpatialComparable mbr1, SpatialComparable mbr2)
SpatialPrimitiveDoubleDistanceFunctiondoubleMinDist in interface SpatialPrimitiveDoubleDistanceFunction<NumberVector<?>>doubleMinDist in class WeightedLPNormDistanceFunctionmbr1 - the first MBR objectmbr2 - the second MBR objectpublic boolean equals(Object obj)
equals in class WeightedLPNormDistanceFunction