public static class SharedNearestNeighborPreprocessor.Factory.Parameterizer<O,D extends Distance<D>> extends AbstractParameterizer
Modifier and Type | Field and Description |
---|---|
protected DistanceFunction<O,D> |
distanceFunction
Hold the distance function to be used.
|
protected int |
numberOfNeighbors
Holds the number of nearest neighbors to be used.
|
Constructor and Description |
---|
SharedNearestNeighborPreprocessor.Factory.Parameterizer() |
Modifier and Type | Method and Description |
---|---|
protected SharedNearestNeighborPreprocessor.Factory<O,D> |
makeInstance()
Make an instance after successful configuration.
|
protected void |
makeOptions(Parameterization config)
Add all options.
|
configure, make
protected int numberOfNeighbors
protected DistanceFunction<O,D extends Distance<D>> distanceFunction
public SharedNearestNeighborPreprocessor.Factory.Parameterizer()
protected void makeOptions(Parameterization config)
AbstractParameterizer
makeOptions
in class AbstractParameterizer
config
- Parameterization to add options to.protected SharedNearestNeighborPreprocessor.Factory<O,D> makeInstance()
AbstractParameterizer
makeInstance
in class AbstractParameterizer