@Priority(value=200) public class LinearKernelFunction extends PolynomialKernelFunction
Note: this is effectively equivalent to using
EuclideanDistanceFunction
Modifier and Type | Class and Description |
---|---|
static class |
LinearKernelFunction.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static LinearKernelFunction |
STATIC
Static instance.
|
DEFAULT_DEGREE
Constructor and Description |
---|
LinearKernelFunction()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
double |
distance(NumberVector fv1,
NumberVector fv2)
Computes the distance between two given DatabaseObjects according to this
distance function.
|
double |
similarity(NumberVector o1,
NumberVector o2)
Computes the similarity between two given DatabaseObjects according to this
similarity function.
|
instantiate, isMetric, isSymmetric
getInputTypeRestriction
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputTypeRestriction
isSquared
public static final LinearKernelFunction STATIC
@Deprecated public LinearKernelFunction()
STATIC
!public double similarity(NumberVector o1, NumberVector o2)
PrimitiveSimilarityFunction
similarity
in interface PrimitiveSimilarityFunction<NumberVector>
similarity
in class PolynomialKernelFunction
o1
- first DatabaseObjecto2
- second DatabaseObjectpublic double distance(NumberVector fv1, NumberVector fv2)
PrimitiveDistanceFunction
distance
in interface PrimitiveDistanceFunction<NumberVector>
distance
in class PolynomialKernelFunction
fv1
- first DatabaseObjectfv2
- second DatabaseObjectCopyright © 2019 ELKI Development Team. License information.