Package elki.clustering.kmedoids
Class CLARANS.Par<V>
- java.lang.Object
-
- elki.clustering.kmedoids.CLARANS.Par<V>
-
- All Implemented Interfaces:
Parameterizer
- Direct Known Subclasses:
FastCLARANS.Par
public static class CLARANS.Par<V> extends java.lang.Object implements Parameterizer
Parameterization class.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected Distance<? super V>
distance
The distance function to use.(package private) int
k
Number of cluster centers to find.(package private) double
maxneighbor
Maximum neighbors to explore.static OptionID
NEIGHBORS_ID
The number of neighbors to explore.(package private) int
numlocal
Number of restarts to do.(package private) RandomFactory
random
Random factory for initialization.static OptionID
RANDOM_ID
Random generator.static OptionID
RESTARTS_ID
The number of restarts to run.
-
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.protected double
defaultRate()
Default sampling rate.CLARANS<V>
make()
Make an instance after successful configuration.
-
-
-
Field Detail
-
RESTARTS_ID
public static final OptionID RESTARTS_ID
The number of restarts to run.
-
NEIGHBORS_ID
public static final OptionID NEIGHBORS_ID
The number of neighbors to explore.
-
RANDOM_ID
public static final OptionID RANDOM_ID
Random generator.
-
maxneighbor
double maxneighbor
Maximum neighbors to explore. If less than 1, it is considered to be a relative value.
-
numlocal
int numlocal
Number of restarts to do.
-
k
int k
Number of cluster centers to find.
-
random
RandomFactory random
Random factory for initialization.
-
-
Method Detail
-
defaultRate
protected double defaultRate()
Default sampling rate.- Returns:
- Default sampling rate.
-
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 CLARANS<V> 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
-
-