protected static class KMeansAnnulus.Instance extends KMeansHamerly.Instance
| Modifier and Type | Field and Description |
|---|---|
(package private) double[] |
cdist
Cluster center distances.
|
(package private) int[] |
cnum
Sorted neighbors
|
(package private) WritableIntegerDataStore |
second
Second nearest cluster.
|
lower, newmeans, sep, sums, upperassignment, clusters, isSquared, k, key, means, relation, varsum| Constructor and Description |
|---|
Instance(Relation<? extends NumberVector> relation,
NumberVectorDistanceFunction<?> df,
double[][] means) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
assignToNearestCluster()
Reassign objects, but avoid unnecessary computations based on their
bounds.
|
protected Logging |
getLogger()
Get the class logger.
|
protected int |
initialAssignToNearestCluster()
Perform initial cluster assignment.
|
protected void |
orderMeans()
Recompute the separation of cluster means.
|
iterate, recomputeSeperation, updateBoundsbuildResult, buildResult, copyMeans, distance, isSquared, meansFromSums, movedDistance, recomputeSeperation, runWritableIntegerDataStore second
double[] cdist
int[] cnum
public Instance(Relation<? extends NumberVector> relation, NumberVectorDistanceFunction<?> df, double[][] means)
protected int initialAssignToNearestCluster()
KMeansHamerly.InstanceinitialAssignToNearestCluster in class KMeansHamerly.Instanceprotected void orderMeans()
protected int assignToNearestCluster()
KMeansHamerly.InstanceassignToNearestCluster in class KMeansHamerly.Instanceprotected Logging getLogger()
AbstractKMeans.InstancegetLogger in class KMeansHamerly.InstanceCopyright © 2019 ELKI Development Team. License information.