public static class KMeansLloyd.Parameterizer<V extends NumberVector<?>,D extends Distance<D>> extends AbstractPrimitiveDistanceBasedAlgorithm.Parameterizer<NumberVector<?>,D>
Modifier and Type | Field and Description |
---|---|
protected KMeansInitialization<V> |
initializer
Initialization method.
|
protected int |
k
k Parameter.
|
protected int |
maxiter
Number of iterations.
|
distanceFunction
Constructor and Description |
---|
KMeansLloyd.Parameterizer() |
Modifier and Type | Method and Description |
---|---|
protected KMeansLloyd<V,D> |
makeInstance()
Make an instance after successful configuration.
|
protected void |
makeOptions(Parameterization config)
Add all options.
|
configure, make
protected int k
protected int maxiter
protected KMeansInitialization<V extends NumberVector<?>> initializer
protected void makeOptions(Parameterization config)
AbstractParameterizer
makeOptions
in class AbstractPrimitiveDistanceBasedAlgorithm.Parameterizer<NumberVector<?>,D extends Distance<D>>
config
- Parameterization to add options to.protected KMeansLloyd<V,D> makeInstance()
AbstractParameterizer
makeInstance
in class AbstractParameterizer