V
- Vector typepublic class RandomlyGeneratedInitialMeans<V extends NumberVector<?>> extends AbstractKMeansInitialization<V>
Modifier and Type | Class and Description |
---|---|
static class |
RandomlyGeneratedInitialMeans.Parameterizer<V extends NumberVector<?>>
Parameterization class.
|
rnd
Constructor and Description |
---|
RandomlyGeneratedInitialMeans(RandomFactory rnd)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<V> |
chooseInitialMeans(Database database,
Relation<V> relation,
int k,
PrimitiveDistanceFunction<? super NumberVector<?>,?> distanceFunction)
Choose initial means
|
public RandomlyGeneratedInitialMeans(RandomFactory rnd)
rnd
- Random generator.public List<V> chooseInitialMeans(Database database, Relation<V> relation, int k, PrimitiveDistanceFunction<? super NumberVector<?>,?> distanceFunction)
KMeansInitialization
database
- Database contextrelation
- Relationk
- Parameter kdistanceFunction
- Distance function