O
- Vector type@Reference(authors="E. W. Forgy", title="Cluster analysis of multivariate data: efficiency versus interpretability of classifications", booktitle="Biometrics 21(3)") public class RandomlyChosenInitialMeans<O> extends AbstractKMeansInitialization<NumberVector> implements KMedoidsInitialization<O>
E. W. Forgy
Cluster analysis of multivariate data : efficiency versus interpretability of
classifications
Abstract published in Biometrics 21(3)
Modifier and Type | Class and Description |
---|---|
static class |
RandomlyChosenInitialMeans.Parameterizer<V>
Parameterization class.
|
rnd
Constructor and Description |
---|
RandomlyChosenInitialMeans(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
|
DBIDs |
chooseInitialMedoids(int k,
DBIDs ids,
DistanceQuery<? super O> distanceFunction)
Choose initial means
|
public RandomlyChosenInitialMeans(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
chooseInitialMeans
in interface KMeansInitialization<NumberVector>
T
- Input vector typeV
- Output vector typedatabase
- Database contextrelation
- Relationk
- Parameter kdistanceFunction
- Distance functionfactory
- Factory for output vectors.public DBIDs chooseInitialMedoids(int k, DBIDs ids, DistanceQuery<? super O> distanceFunction)
KMedoidsInitialization
chooseInitialMedoids
in interface KMedoidsInitialization<O>
k
- Parameter kids
- Candidate IDs.distanceFunction
- Distance functionCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.