Class AbstractKMeansInitialization
- java.lang.Object
-
- elki.clustering.kmeans.initialization.AbstractKMeansInitialization
-
- All Implemented Interfaces:
KMeansInitialization
- Direct Known Subclasses:
FarthestPoints
,KMC2
,KMeansPlusPlus
,Ostrovsky
,Predefined
,RandomlyChosen
,RandomNormalGenerated
,RandomUniformGenerated
,SampleKMeans
,SphericalKMeansPlusPlus
public abstract class AbstractKMeansInitialization extends java.lang.Object implements KMeansInitialization
Abstract base class for common k-means initializations.- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractKMeansInitialization.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description protected RandomFactory
rnd
Random number generator
-
Constructor Summary
Constructors Constructor Description AbstractKMeansInitialization(RandomFactory rnd)
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double[][]
unboxVectors(java.util.List<? extends NumberVector> means)
Unbox database means to primitive means.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.clustering.kmeans.initialization.KMeansInitialization
chooseInitialMeans
-
-
-
-
Field Detail
-
rnd
protected RandomFactory rnd
Random number generator
-
-
Constructor Detail
-
AbstractKMeansInitialization
public AbstractKMeansInitialization(RandomFactory rnd)
Constructor.- Parameters:
rnd
- Random number generator.
-
-
Method Detail
-
unboxVectors
public static double[][] unboxVectors(java.util.List<? extends NumberVector> means)
Unbox database means to primitive means.- Parameters:
means
- Database means- Returns:
- List of primitive
double[]
means
-
-