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, upper
assignment, 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, updateBounds
buildResult, buildResult, copyMeans, distance, isSquared, meansFromSums, movedDistance, recomputeSeperation, run
WritableIntegerDataStore second
double[] cdist
int[] cnum
public Instance(Relation<? extends NumberVector> relation, NumberVectorDistanceFunction<?> df, double[][] means)
protected int initialAssignToNearestCluster()
KMeansHamerly.Instance
initialAssignToNearestCluster
in class KMeansHamerly.Instance
protected void orderMeans()
protected int assignToNearestCluster()
KMeansHamerly.Instance
assignToNearestCluster
in class KMeansHamerly.Instance
protected Logging getLogger()
AbstractKMeans.Instance
getLogger
in class KMeansHamerly.Instance
Copyright © 2019 ELKI Development Team. License information.