O
- Object typeD
- Distance typepublic static class PrecomputedKNearestNeighborNeighborhood.Factory.Parameterizer<O,D extends Distance<D>> extends AbstractParameterizer
Modifier and Type | Field and Description |
---|---|
static OptionID |
DISTANCEFUNCTION_ID
Parameter to specify the distance function to use
|
(package private) DistanceFunction<? super O,D> |
distFunc
Distance function
|
(package private) int |
k
Parameter k
|
static OptionID |
K_ID
Parameter k
|
Constructor and Description |
---|
PrecomputedKNearestNeighborNeighborhood.Factory.Parameterizer() |
Modifier and Type | Method and Description |
---|---|
protected PrecomputedKNearestNeighborNeighborhood.Factory<O,D> |
makeInstance()
Make an instance after successful configuration.
|
protected void |
makeOptions(Parameterization config)
Add all options.
|
configure, make
public static final OptionID K_ID
public static final OptionID DISTANCEFUNCTION_ID
int k
DistanceFunction<? super O,D extends Distance<D>> distFunc
public PrecomputedKNearestNeighborNeighborhood.Factory.Parameterizer()
protected void makeOptions(Parameterization config)
AbstractParameterizer
makeOptions
in class AbstractParameterizer
config
- Parameterization to add options to.protected PrecomputedKNearestNeighborNeighborhood.Factory<O,D> makeInstance()
AbstractParameterizer
makeInstance
in class AbstractParameterizer