public class PredefinedInitialMeans extends AbstractKMeansInitialization<NumberVector>
Modifier and Type | Class and Description |
---|---|
static class |
PredefinedInitialMeans.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
(package private) List<? extends NumberVector> |
initialMeans
Initial means to return.
|
rnd
Constructor and Description |
---|
PredefinedInitialMeans(double[][] initialMeans)
Constructor.
|
PredefinedInitialMeans(List<? extends NumberVector> initialMeans)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T extends NumberVector,O extends NumberVector> |
chooseInitialMeans(Database database,
Relation<T> relation,
int k,
NumberVectorDistanceFunction<? super T> distanceFunction,
NumberVector.Factory<O> factory)
Choose initial means
|
void |
setInitialClusters(List<? extends Cluster<? extends MeanModel>> initialMeans)
Set the initial means.
|
void |
setInitialMeans(double[][] initialMeans)
Set the initial means.
|
void |
setInitialMeans(List<? extends NumberVector> initialMeans)
Set the initial means.
|
List<? extends NumberVector> initialMeans
public PredefinedInitialMeans(List<? extends NumberVector> initialMeans)
initialMeans
- Initial meanspublic PredefinedInitialMeans(double[][] initialMeans)
initialMeans
- Initial meanspublic void setInitialMeans(List<? extends NumberVector> initialMeans)
initialMeans
- initial means.public void setInitialClusters(List<? extends Cluster<? extends MeanModel>> initialMeans)
initialMeans
- initial means.public void setInitialMeans(double[][] initialMeans)
initialMeans
- initial means.public <T extends NumberVector,O extends NumberVector> List<O> chooseInitialMeans(Database database, Relation<T> relation, int k, NumberVectorDistanceFunction<? super T> distanceFunction, NumberVector.Factory<O> factory)
KMeansInitialization
T
- Input vector typeO
- 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.