public class LinearKernelFunction extends PolynomialKernelFunction
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 |
doubleDistance(NumberVector<?> fv1,
NumberVector<?> fv2)
Computes the distance between two given Objects according to this distance
function.
|
double |
doubleSimilarity(NumberVector<?> o1,
NumberVector<?> o2)
Computes the similarity between two given Objects according to this
similarity function.
|
distance, instantiate, isMetric
getDistanceFactory, getInputTypeRestriction, similarity
isSymmetric
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputTypeRestriction
getDistanceFactory, isSymmetric
isSymmetric
public static final LinearKernelFunction STATIC
@Deprecated public LinearKernelFunction()
STATIC
!public double doubleSimilarity(NumberVector<?> o1, NumberVector<?> o2)
PrimitiveDoubleSimilarityFunction
doubleSimilarity
in interface PrimitiveDoubleSimilarityFunction<NumberVector<?>>
doubleSimilarity
in class PolynomialKernelFunction
o1
- first Objecto2
- second Objectpublic double doubleDistance(NumberVector<?> fv1, NumberVector<?> fv2)
PrimitiveDoubleDistanceFunction
doubleDistance
in interface PrimitiveDoubleDistanceFunction<NumberVector<?>>
doubleDistance
in class PolynomialKernelFunction
fv1
- first Objectfv2
- second Object