O
- Object typeD
- Distance typepublic static class PrecomputedKNearestNeighborNeighborhood.Factory<O,D extends Distance<D>> extends Object implements NeighborSetPredicate.Factory<O>
Modifier and Type | Class and Description |
---|---|
static class |
PrecomputedKNearestNeighborNeighborhood.Factory.Parameterizer<O,D extends Distance<D>>
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
private DistanceFunction<? super O,D> |
distFunc
distance function to use
|
private int |
k
parameter k
|
Constructor and Description |
---|
PrecomputedKNearestNeighborNeighborhood.Factory(int k,
DistanceFunction<? super O,D> distFunc)
Factory Constructor
|
Modifier and Type | Method and Description |
---|---|
TypeInformation |
getInputTypeRestriction()
Get the input type information
|
NeighborSetPredicate |
instantiate(Relation<? extends O> relation)
Instantiation method.
|
private int k
private DistanceFunction<? super O,D extends Distance<D>> distFunc
public PrecomputedKNearestNeighborNeighborhood.Factory(int k, DistanceFunction<? super O,D> distFunc)
public NeighborSetPredicate instantiate(Relation<? extends O> relation)
NeighborSetPredicate.Factory
instantiate
in interface NeighborSetPredicate.Factory<O>
relation
- Relation to instantiate for.public TypeInformation getInputTypeRestriction()
NeighborSetPredicate.Factory
getInputTypeRestriction
in interface NeighborSetPredicate.Factory<O>