
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, makeprotected int numberOfNeighbors
protected DistanceFunction<O,D extends Distance<D>> distanceFunction
public SharedNearestNeighborPreprocessor.Factory.Parameterizer()
protected void makeOptions(Parameterization config)
AbstractParameterizermakeOptions in class AbstractParameterizerconfig - Parameterization to add options to.protected SharedNearestNeighborPreprocessor.Factory<O,D> makeInstance()
AbstractParameterizermakeInstance in class AbstractParameterizer