public static class FloatKMeans.Result extends FloatCentroidsResult implements FloatNearestNeighboursProvider
Modifier and Type | Field and Description |
---|---|
protected int |
changedCentroidCount |
protected int |
iterations |
protected FloatNearestNeighbours |
nn |
centroids
CLUSTER_HEADER
Constructor and Description |
---|
Result() |
Modifier and Type | Method and Description |
---|---|
HardAssigner<float[],float[],IntFloatPair> |
defaultHardAssigner()
Get the default hard assigner for this clusterer.
|
FloatNearestNeighbours |
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 FloatNearestNeighbours nn
protected int iterations
protected int changedCentroidCount
public Result()
public HardAssigner<float[],float[],IntFloatPair> defaultHardAssigner()
SpatialClusters
defaultHardAssigner
in interface SpatialClusters<float[]>
defaultHardAssigner
in class FloatCentroidsResult
public FloatNearestNeighbours getNearestNeighbours()
getNearestNeighbours
in interface FloatNearestNeighboursProvider
public int numIterations()
public int numChangedCentroids()