Package tutorial.clustering
Class SameSizeKMeans.Meta
- java.lang.Object
-
- tutorial.clustering.SameSizeKMeans.Meta
-
- Enclosing class:
- SameSizeKMeans<V extends NumberVector>
private static class SameSizeKMeans.Meta extends java.lang.ObjectObject metadata.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) double[]distsDistance to the cluster centers.(package private) intprimaryIndexes: primary assignment (current or best), secondary assignment (second best or worst).(package private) intsecondaryIndexes: primary assignment (current or best), secondary assignment (second best or worst).
-
Constructor Summary
Constructors Modifier Constructor Description protectedMeta(int k)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doublegain(int i)Gain from switching to cluster i.protected doublepriority()Priority / badness: difference between best and worst.
-
-
-
Field Detail
-
dists
double[] dists
Distance to the cluster centers.
-
primary
int primary
Indexes: primary assignment (current or best), secondary assignment (second best or worst). The actual meaning differs from initialization to iteration phase!
-
secondary
int secondary
Indexes: primary assignment (current or best), secondary assignment (second best or worst). The actual meaning differs from initialization to iteration phase!
-
-