O
- Object typepublic static class PrecomputedKNearestNeighborNeighborhood.Factory<O> extends Object implements NeighborSetPredicate.Factory<O>
Modifier and Type | Class and Description |
---|---|
static class |
PrecomputedKNearestNeighborNeighborhood.Factory.Parameterizer<O>
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
private DistanceFunction<? super O> |
distFunc
distance function to use
|
private int |
k
parameter k
|
Constructor and Description |
---|
PrecomputedKNearestNeighborNeighborhood.Factory(int k,
DistanceFunction<? super O> distFunc)
Factory Constructor
|
Modifier and Type | Method and Description |
---|---|
TypeInformation |
getInputTypeRestriction()
Get the input type information
|
NeighborSetPredicate |
instantiate(Database database,
Relation<? extends O> relation)
Instantiation method.
|
private int k
private DistanceFunction<? super O> distFunc
public PrecomputedKNearestNeighborNeighborhood.Factory(int k, DistanceFunction<? super O> distFunc)
public NeighborSetPredicate instantiate(Database database, Relation<? extends O> relation)
NeighborSetPredicate.Factory
instantiate
in interface NeighborSetPredicate.Factory<O>
database
- Databaserelation
- Relation to instantiate for.public TypeInformation getInputTypeRestriction()
NeighborSetPredicate.Factory
getInputTypeRestriction
in interface NeighborSetPredicate.Factory<O>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.