public static class LongKMeans.Result extends LongCentroidsResult implements LongNearestNeighboursProvider
Modifier and Type | Field and Description |
---|---|
protected int |
changedCentroidCount |
protected int |
iterations |
protected LongNearestNeighbours |
nn |
centroids
CLUSTER_HEADER
Constructor and Description |
---|
Result() |
Modifier and Type | Method and Description |
---|---|
HardAssigner<long[],double[],IntDoublePair> |
defaultHardAssigner()
Get the default hard assigner for this clusterer.
|
LongNearestNeighbours |
getNearestNeighbours() |
int |
numChangedCentroids()
Get the number of changed centroids in the last iteration.
|
int |
numIterations()
Get the number of K-Means iterations that produced this result.
|
asciiHeader, binaryHeader, equals, getCentroids, numClusters, numDimensions, readASCII, readBinary, toString, writeASCII, writeBinary
protected LongNearestNeighbours nn
protected int iterations
protected int changedCentroidCount
public Result()
public HardAssigner<long[],double[],IntDoublePair> defaultHardAssigner()
SpatialClusters
defaultHardAssigner
in interface SpatialClusters<long[]>
defaultHardAssigner
in class LongCentroidsResult
public LongNearestNeighbours getNearestNeighbours()
getNearestNeighbours
in interface LongNearestNeighboursProvider
public int numIterations()
public int numChangedCentroids()