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(Relation<V> relation,
int k,
PrimitiveDistanceFunction<? super V,?> distanceFunction)
Choose initial means
|
public RandomlyGeneratedInitialMeans(RandomFactory rnd)
rnd
- Random generator.public List<V> chooseInitialMeans(Relation<V> relation, int k, PrimitiveDistanceFunction<? super V,?> distanceFunction)
KMeansInitialization
relation
- Relationk
- Parameter kdistanceFunction
- Distance function