Package elki.clustering.kmeans
Class SimplifiedElkanKMeans.Par<V extends NumberVector>
- java.lang.Object
-
- elki.clustering.kmeans.AbstractKMeans.Par<V>
-
- elki.clustering.kmeans.SimplifiedElkanKMeans.Par<V>
-
- All Implemented Interfaces:
Parameterizer
- Direct Known Subclasses:
ElkanKMeans.Par
- Enclosing class:
- SimplifiedElkanKMeans<V extends NumberVector>
public static class SimplifiedElkanKMeans.Par<V extends NumberVector> extends AbstractKMeans.Par<V>
Parameterization class.- Author:
- Erich Schubert
-
-
Field Summary
-
Fields inherited from class elki.clustering.kmeans.AbstractKMeans.Par
distance, initializer, k, maxiter, varstat
-
-
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.SimplifiedElkanKMeans<V>
make()
Make an instance after successful configuration.protected boolean
needsMetric()
Users could use other non-metric distances at their own risk; but some k-means variants make explicit use of the triangle inequality, we emit extra warnings then.-
Methods inherited from class elki.clustering.kmeans.AbstractKMeans.Par
getParameterDistance, getParameterInitialization, getParameterK, getParameterMaxIter, getParameterVarstat
-
-
-
-
Method Detail
-
needsMetric
protected boolean needsMetric()
Description copied from class:AbstractKMeans.Par
Users could use other non-metric distances at their own risk; but some k-means variants make explicit use of the triangle inequality, we emit extra warnings then.- Overrides:
needsMetric
in classAbstractKMeans.Par<V extends NumberVector>
- Returns:
true
if the algorithm uses triangle inequality
-
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
- Overrides:
configure
in classAbstractKMeans.Par<V extends NumberVector>
- Parameters:
config
- Parameterization
-
make
public SimplifiedElkanKMeans<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
- Specified by:
make
in classAbstractKMeans.Par<V extends NumberVector>
- Returns:
- a new instance
-
-