|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance> de.lmu.ifi.dbs.elki.distance.similarityfunction.kernel.FooKernelFunction
public class FooKernelFunction
Provides an experimental KernelDistanceFunction for NumberVectors. Currently only supports 2D data and x1^2 ~ x2 correlations.
Nested Class Summary | |
---|---|
static class |
FooKernelFunction.Parameterizer
Parameterization class. |
Field Summary | |
---|---|
static int |
DEFAULT_MAX_DEGREE
The default max_degree. |
private int |
max_degree
Degree of the polynomial kernel function |
static OptionID |
MAX_DEGREE_ID
Parameter for the maximum degree |
Constructor Summary | |
---|---|
FooKernelFunction(int max_degree)
Constructor. |
Method Summary | ||
---|---|---|
DoubleDistance |
distance(NumberVector<?,?> fv1,
NumberVector<?,?> fv2)
Computes the distance between two given DatabaseObjects according to this distance function. |
|
DoubleDistance |
getDistanceFactory()
Method to get the distance functions factory. |
|
VectorFieldTypeInformation<? super NumberVector<?,?>> |
getInputTypeRestriction()
Get the input data type of the function. |
|
|
instantiate(Relation<T> database)
Instantiate with a database to get the actual distance query. |
|
DoubleDistance |
similarity(NumberVector<?,?> o1,
NumberVector<?,?> o2)
Provides an experimental kernel similarity between the given two vectors. |
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPrimitiveDistanceFunction |
---|
isMetric, isSymmetric |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.similarityfunction.SimilarityFunction |
---|
isSymmetric |
Field Detail |
---|
public static final int DEFAULT_MAX_DEGREE
public static final OptionID MAX_DEGREE_ID
private int max_degree
Constructor Detail |
---|
public FooKernelFunction(int max_degree)
max_degree
- Maximum degree-Method Detail |
---|
public DoubleDistance similarity(NumberVector<?,?> o1, NumberVector<?,?> o2)
similarity
in interface PrimitiveSimilarityFunction<NumberVector<?,?>,DoubleDistance>
o1
- first vectoro2
- second vector
DoubleDistance
.public DoubleDistance distance(NumberVector<?,?> fv1, NumberVector<?,?> fv2)
PrimitiveDistanceFunction
distance
in interface PrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>
distance
in class AbstractPrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>
fv1
- first DatabaseObjectfv2
- second DatabaseObject
public VectorFieldTypeInformation<? super NumberVector<?,?>> getInputTypeRestriction()
SimilarityFunction
getInputTypeRestriction
in interface DistanceFunction<NumberVector<?,?>,DoubleDistance>
getInputTypeRestriction
in interface PrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>
getInputTypeRestriction
in interface PrimitiveSimilarityFunction<NumberVector<?,?>,DoubleDistance>
getInputTypeRestriction
in interface SimilarityFunction<NumberVector<?,?>,DoubleDistance>
public DoubleDistance getDistanceFactory()
DistanceFunction
getDistanceFactory
in interface DistanceFunction<NumberVector<?,?>,DoubleDistance>
getDistanceFactory
in interface SimilarityFunction<NumberVector<?,?>,DoubleDistance>
getDistanceFactory
in class AbstractPrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>
public <T extends NumberVector<?,?>> DistanceSimilarityQuery<T,DoubleDistance> instantiate(Relation<T> database)
AbstractPrimitiveDistanceFunction
instantiate
in interface DistanceFunction<NumberVector<?,?>,DoubleDistance>
instantiate
in interface SimilarityFunction<NumberVector<?,?>,DoubleDistance>
instantiate
in class AbstractPrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>
database
- Representation
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |