Package elki.clustering.kmeans.spherical
Class SphericalSingleAssignmentKMeans.Instance
- java.lang.Object
-
- elki.clustering.kmeans.AbstractKMeans.Instance
-
- elki.clustering.kmeans.spherical.SphericalKMeans.Instance
-
- elki.clustering.kmeans.spherical.SphericalSingleAssignmentKMeans.Instance
-
- Enclosing class:
- SphericalSingleAssignmentKMeans<V extends NumberVector>
public static class SphericalSingleAssignmentKMeans.Instance extends SphericalKMeans.Instance
Instance for a particular data set.- Author:
- Alexander Voß, Andreas Lang
-
-
Field Summary
-
Fields inherited from class elki.clustering.kmeans.AbstractKMeans.Instance
assignment, clusters, diststat, isSquared, k, key, means, relation, varsum
-
-
Constructor Summary
Constructors Constructor Description Instance(Relation<? extends NumberVector> relation, double[][] means)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Logging
getLogger()
Get the class logger.int
iterate(int iteration)
Main loop function.-
Methods inherited from class elki.clustering.kmeans.spherical.SphericalKMeans.Instance
assignToNearestCluster, distance, distance, distance, initialSeparation, means, meansFromSums, movedSimilarity, recomputeVariance, similarity, similarity, sqrtdistance, sqrtdistance
-
Methods inherited from class elki.clustering.kmeans.AbstractKMeans.Instance
buildResult, buildResult, computeSquaredSeparation, copyMeans, initialSeperation, movedDistance, recomputeSeperation, run, sqrtdistance
-
-
-
-
Constructor Detail
-
Instance
public Instance(Relation<? extends NumberVector> relation, double[][] means)
Constructor.- Parameters:
relation
- Data relationmeans
- Initial cluster means
-
-
Method Detail
-
iterate
public int iterate(int iteration)
Description copied from class:AbstractKMeans.Instance
Main loop function.- Overrides:
iterate
in classSphericalKMeans.Instance
- Parameters:
iteration
- Iteration number (beginning at 1)- Returns:
- Number of reassigned points
-
getLogger
protected Logging getLogger()
Description copied from class:AbstractKMeans.Instance
Get the class logger.- Overrides:
getLogger
in classSphericalKMeans.Instance
- Returns:
- Logger
-
-