public class RandomlyGeneratedInitialMeans extends AbstractKMeansInitialization<NumberVector>
Modifier and Type | Class and Description |
---|---|
static class |
RandomlyGeneratedInitialMeans.Parameterizer
Parameterization class.
|
rnd
Constructor and Description |
---|
RandomlyGeneratedInitialMeans(RandomFactory rnd)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T extends NumberVector,V extends NumberVector> |
chooseInitialMeans(Database database,
Relation<T> relation,
int k,
NumberVectorDistanceFunction<? super T> distanceFunction,
NumberVector.Factory<V> factory)
Choose initial means
|
public RandomlyGeneratedInitialMeans(RandomFactory rnd)
rnd
- Random generator.public <T extends NumberVector,V extends NumberVector> List<V> chooseInitialMeans(Database database, Relation<T> relation, int k, NumberVectorDistanceFunction<? super T> distanceFunction, NumberVector.Factory<V> factory)
KMeansInitialization
T
- Input vector typeV
- Output vector typedatabase
- Database contextrelation
- Relationk
- Parameter kdistanceFunction
- Distance functionfactory
- Factory for output vectors.Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.