O
- Vector type@Reference(authors="R. Ostrovsky, Y. Rabani, L. J. Schulman, C. Swamy",title="The effectiveness of Lloyd-type methods for the k-means problem",booktitle="Symposium on Foundations of Computer Science (FOCS)",url="https://doi.org/10.1109/FOCS.2006.75",bibkey="DBLP:conf/focs/OstrovskyRSS062") @Reference(authors="R. Ostrovsky, Y. Rabani, L. J. Schulman, C. Swamy",title="The effectiveness of lloyd-type methods for the k-means problem",booktitle="Journal of the ACM 59(6)",url="https://doi.org/10.1145/2395116.2395117",bibkey="DBLP:journals/jacm/OstrovskyRSS12") public class OstrovskyInitialMeans<O> extends AbstractKMeansInitialization
Reference:
R. Ostrovsky, Y. Rabani, L. J. Schulman, C. Swamy
The effectiveness of Lloyd-type methods for the k-means problem.
Symposium on Foundations of Computer Science (FOCS)
R. Ostrovsky, Y. Rabani, L. J. Schulman, C. Swamy
The effectiveness of Lloyd-type methods for the k-means problem.
Journal of the ACM 59(6)
Modifier and Type | Class and Description |
---|---|
static class |
OstrovskyInitialMeans.Parameterizer<V>
Parameterization class.
|
rnd
Constructor and Description |
---|
OstrovskyInitialMeans(RandomFactory rnd)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double[][] |
chooseInitialMeans(Database database,
Relation<? extends NumberVector> relation,
int k,
NumberVectorDistanceFunction<?> distanceFunction)
Choose initial means
|
protected static <T> double |
initialWeights(WritableDoubleDataStore weights,
Relation<? extends T> relation,
DBIDs ids,
T first,
T second,
DistanceQuery<? super T> distQ)
Initialize the weight list.
|
unboxVectors
public OstrovskyInitialMeans(RandomFactory rnd)
rnd
- Random generator.public double[][] chooseInitialMeans(Database database, Relation<? extends NumberVector> relation, int k, NumberVectorDistanceFunction<?> distanceFunction)
KMeansInitialization
database
- Database contextrelation
- Relationk
- Parameter kdistanceFunction
- Distance functionprotected static <T> double initialWeights(WritableDoubleDataStore weights, Relation<? extends T> relation, DBIDs ids, T first, T second, DistanceQuery<? super T> distQ)
T
- Object typeweights
- Weight listids
- IDsrelation
- Data relationfirst
- First IDsecond
- Second IDdistQ
- Distance queryCopyright © 2019 ELKI Development Team. License information.