protected static class KMeansLloyd.Instance extends AbstractKMeans.Instance
assignment, clusters, isSquared, k, key, means, relation, varsum
Constructor and Description |
---|
Instance(Relation<? extends NumberVector> relation,
NumberVectorDistanceFunction<?> df,
double[][] means)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Logging |
getLogger()
Get the class logger.
|
protected int |
iterate(int iteration)
Main loop function.
|
assignToNearestCluster, buildResult, buildResult, copyMeans, distance, isSquared, meansFromSums, movedDistance, recomputeSeperation, run
public Instance(Relation<? extends NumberVector> relation, NumberVectorDistanceFunction<?> df, double[][] means)
relation
- Relationmeans
- Initial meansprotected int iterate(int iteration)
AbstractKMeans.Instance
iterate
in class AbstractKMeans.Instance
iteration
- Iteration number (beginning at 1)protected Logging getLogger()
AbstractKMeans.Instance
getLogger
in class AbstractKMeans.Instance
Copyright © 2019 ELKI Development Team. License information.