
public class LPIntegerNormDistanceFunction extends LPNormDistanceFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
LPIntegerNormDistanceFunction.Parameterizer
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
intp
Integer value of p.
|
invp, p, P_ID| Constructor and Description |
|---|
LPIntegerNormDistanceFunction(int p)
Constructor, internal version.
|
| 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) |
equals, getInputTypeRestriction, getP, isMetric, toStringinstantiate, minDistnormdimensionality, dimensionality, dimensionality, dimensionality, distance, getDistanceFactoryisSymmetricclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdistancegetDistanceFactory, isSymmetricpublic LPIntegerNormDistanceFunction(int p)
p - Parameter pprivate 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 LPNormDistanceFunctionv1 - first Objectv2 - second Objectpublic double doubleNorm(NumberVector<?> v)
DoubleNormdoubleNorm in interface DoubleNorm<NumberVector<?>>doubleNorm in class LPNormDistanceFunctionv - Objectpublic double doubleMinDist(SpatialComparable mbr1, SpatialComparable mbr2)
SpatialPrimitiveDoubleDistanceFunctiondoubleMinDist in interface SpatialPrimitiveDoubleDistanceFunction<NumberVector<?>>doubleMinDist in class LPNormDistanceFunctionmbr1 - the first MBR objectmbr2 - the second MBR object