Class Ostrovsky.NumberVectorInstance
- java.lang.Object
-
- elki.clustering.kmeans.initialization.KMeansPlusPlus.Instance<NumberVector>
-
- elki.clustering.kmeans.initialization.KMeansPlusPlus.NumberVectorInstance
-
- elki.clustering.kmeans.initialization.Ostrovsky.NumberVectorInstance
-
- Enclosing class:
- Ostrovsky
protected class Ostrovsky.NumberVectorInstance extends KMeansPlusPlus.NumberVectorInstance
Instance for number vectors.- Author:
- Erich Schubert
-
-
Field Summary
-
Fields inherited from class elki.clustering.kmeans.initialization.KMeansPlusPlus.NumberVectorInstance
distance, relation
-
Fields inherited from class elki.clustering.kmeans.initialization.KMeansPlusPlus.Instance
diststat, ids, random, weights
-
-
Constructor Summary
Constructors Constructor Description NumberVectorInstance(Relation<? extends NumberVector> relation, NumberVectorDistance<?> distance, RandomFactory rnd)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[][]
run(Relation<? extends NumberVector> relation, int k)
-
Methods inherited from class elki.clustering.kmeans.initialization.KMeansPlusPlus.NumberVectorInstance
chooseRemaining, distance, run
-
Methods inherited from class elki.clustering.kmeans.initialization.KMeansPlusPlus.Instance
initialWeights, nextDouble, updateWeights
-
-
-
-
Constructor Detail
-
NumberVectorInstance
public NumberVectorInstance(Relation<? extends NumberVector> relation, NumberVectorDistance<?> distance, RandomFactory rnd)
Constructor.- Parameters:
relation
- Data relationdistance
- Distance functionrnd
- Random generator
-
-
Method Detail
-
run
public double[][] run(Relation<? extends NumberVector> relation, int k)
-
-