Package elki.clustering.kcenter
Class GreedyKCenter.Par<O>
- java.lang.Object
-
- elki.clustering.kcenter.GreedyKCenter.Par<O>
-
- Type Parameters:
O
- object type to cluster
- All Implemented Interfaces:
Parameterizer
- Enclosing class:
- GreedyKCenter<O>
public static class GreedyKCenter.Par<O> extends java.lang.Object implements Parameterizer
Parameterization class- Author:
- Robert Gehde, Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Distance<? super O>
distance
Distance function to use(package private) int
k
number of clustersstatic OptionID
K_ID
Parameter to specify the number of clusters(package private) RandomFactory
rand
Random factory for choosing the first element.static OptionID
RANDOM_ID
Parameter for the random seed
-
Constructor Summary
Constructors Constructor Description Par()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Parameterization config)
Configure the class.GreedyKCenter<O>
make()
Make an instance after successful configuration.
-
-
-
Field Detail
-
K_ID
public static final OptionID K_ID
Parameter to specify the number of clusters
-
RANDOM_ID
public static final OptionID RANDOM_ID
Parameter for the random seed
-
k
int k
number of clusters
-
rand
RandomFactory rand
Random factory for choosing the first element.
-
-
Method Detail
-
configure
public void configure(Parameterization config)
Description copied from interface:Parameterizer
Configure the class.Note: the status is collected by the parameterization object, so that multiple errors may arise and be reported in one run.
- Specified by:
configure
in interfaceParameterizer
- Parameters:
config
- Parameterization
-
make
public GreedyKCenter<O> make()
Description copied from interface:Parameterizer
Make an instance after successful configuration.Note: your class should return the exact type, only this very broad interface should use
Object
as return type.- Specified by:
make
in interfaceParameterizer
- Returns:
- a new instance
-
-