Package elki.clustering.kmeans
Class YinYangKMeans.Par<V extends NumberVector>
- java.lang.Object
-
- elki.clustering.kmeans.AbstractKMeans.Par<V>
-
- elki.clustering.kmeans.YinYangKMeans.Par<V>
-
- All Implemented Interfaces:
Parameterizer
- Enclosing class:
- YinYangKMeans<V extends NumberVector>
public static class YinYangKMeans.Par<V extends NumberVector> extends AbstractKMeans.Par<V>
Parameterization class.- Author:
- Minh Nhat Nguyen
-
-
Field Summary
Fields Modifier and Type Field Description protected inttNumber of groups in the initial clustering of the centroids.static OptionIDT_IDParameter to specify t the number of centroid groups.-
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 voidconfigure(Parameterization config)Configure the class.YinYangKMeans<V>make()Make an instance after successful configuration.protected booleanneedsMetric()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
-
-
-
-
Field Detail
-
T_ID
public static final OptionID T_ID
Parameter to specify t the number of centroid groups.
-
t
protected int t
Number of groups in the initial clustering of the centroids.
-
-
Method Detail
-
needsMetric
protected boolean needsMetric()
Description copied from class:AbstractKMeans.ParUsers 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:
needsMetricin classAbstractKMeans.Par<V extends NumberVector>- Returns:
trueif the algorithm uses triangle inequality
-
configure
public void configure(Parameterization config)
Description copied from interface:ParameterizerConfigure 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:
configurein interfaceParameterizer- Overrides:
configurein classAbstractKMeans.Par<V extends NumberVector>- Parameters:
config- Parameterization
-
make
public YinYangKMeans<V> make()
Description copied from interface:ParameterizerMake an instance after successful configuration.Note: your class should return the exact type, only this very broad interface should use
Objectas return type.- Specified by:
makein interfaceParameterizer- Specified by:
makein classAbstractKMeans.Par<V extends NumberVector>- Returns:
- a new instance
-
-