O
- Vector type@Reference(authors="D. J. McRae",title="MIKCA: A FORTRAN IV Iterative K-Means Cluster Analysis Program",booktitle="Behavioral Science 16(4)",bibkey="journals/misc/McRae71") @Reference(authors="E. W. Forgy",title="Cluster analysis of multivariate data: efficiency versus interpretability of classifications",booktitle="Biometrics 21(3)",bibkey="journals/biometrics/Forgy65") @Reference(authors="M. R. Anderberg",title="Nonhierarchical Clustering Methods",booktitle="Cluster Analysis for Applications",bibkey="books/academic/Anderberg73/Ch7") @Alias(value="de.lmu.ifi.dbs.elki.algorithm.clustering.kmeans.RandomlyChosenInitialMeans") public class RandomlyChosenInitialMeans<O> extends AbstractKMeansInitialization implements KMedoidsInitialization<O>
Reference:
D. J. McRae
MIKCA: A FORTRAN IV Iterative K-Means Cluster Analysis Program
Behavioral Science 16(4)
E. W. Forgy
Cluster analysis of multivariate data: efficiency versus interpretability of
classifications
Abstract published in Biometrics 21(3)
M. R. Anderberg
Hierarchical Clustering Methods
Cluster Analysis for Applications
This initialization is often attributed to Forgy (but this is also debated), but we were unable to verify neither McRae (not available online?) nor Forgy so far (apparently, only an abstract is available in print, so we mostly can rely on indirect references, such as Anderberg).
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 |
---|---|
double[][] |
chooseInitialMeans(Database database,
Relation<? extends NumberVector> relation,
int k,
NumberVectorDistanceFunction<?> distanceFunction)
Choose initial means
|
DBIDs |
chooseInitialMedoids(int k,
DBIDs ids,
DistanceQuery<? super O> distanceFunction)
Choose initial means
|
unboxVectors
public RandomlyChosenInitialMeans(RandomFactory rnd)
rnd
- Random generator.public double[][] chooseInitialMeans(Database database, Relation<? extends NumberVector> relation, int k, NumberVectorDistanceFunction<?> distanceFunction)
KMeansInitialization
chooseInitialMeans
in interface KMeansInitialization
database
- Database contextrelation
- Relationk
- Parameter kdistanceFunction
- Distance functionpublic DBIDs chooseInitialMedoids(int k, DBIDs ids, DistanceQuery<? super O> distanceFunction)
KMedoidsInitialization
chooseInitialMedoids
in interface KMedoidsInitialization<O>
k
- Parameter kids
- Candidate IDs.distanceFunction
- Distance functionCopyright © 2019 ELKI Development Team. License information.