public class SparseEuclideanDistanceFunction extends SparseLPNormDistanceFunction
Modifier and Type | Class and Description |
---|---|
static class |
SparseEuclideanDistanceFunction.Parameterizer
Parameterizer
|
Modifier and Type | Field and Description |
---|---|
static SparseEuclideanDistanceFunction |
STATIC
Static instance
|
Constructor and Description |
---|
SparseEuclideanDistanceFunction()
Deprecated.
Use static instance instead.
|
Modifier and Type | Method and Description |
---|---|
double |
doubleDistance(SparseNumberVector<?> v1,
SparseNumberVector<?> v2)
Computes the distance between two given Objects according to this distance
function.
|
double |
doubleNorm(SparseNumberVector<?> v1)
Compute the norm of object obj as double value.
|
distance, getDistanceFactory, getInputTypeRestriction, isMetric, norm
instantiate, isSymmetric
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
instantiate, isSymmetric
public static final SparseEuclideanDistanceFunction STATIC
@Deprecated public SparseEuclideanDistanceFunction()
public double doubleDistance(SparseNumberVector<?> v1, SparseNumberVector<?> v2)
PrimitiveDoubleDistanceFunction
doubleDistance
in interface PrimitiveDoubleDistanceFunction<SparseNumberVector<?>>
doubleDistance
in class SparseLPNormDistanceFunction
v1
- first Objectv2
- second Objectpublic double doubleNorm(SparseNumberVector<?> v1)
DoubleNorm
doubleNorm
in interface DoubleNorm<SparseNumberVector<?>>
doubleNorm
in class SparseLPNormDistanceFunction
v1
- Object