public class ByteCentroidsResult extends Object implements SpatialClusters<byte[]>, CentroidsProvider<byte[]>
SpatialClusterer that just produces a flat set of centroids.| Modifier and Type | Field and Description |
|---|---|
byte[][] |
centroids
The centroids of the clusters
|
CLUSTER_HEADER| Constructor and Description |
|---|
ByteCentroidsResult() |
| Modifier and Type | Method and Description |
|---|---|
String |
asciiHeader() |
byte[] |
binaryHeader() |
HardAssigner<byte[],float[],IntFloatPair> |
defaultHardAssigner()
Get the default hard assigner for this clusterer.
|
boolean |
equals(Object obj) |
byte[][] |
getCentroids() |
int |
numClusters()
Get the number of clusters.
|
int |
numDimensions()
Get the data dimensionality
|
void |
readASCII(Scanner br) |
void |
readBinary(DataInput in) |
String |
toString() |
void |
writeASCII(PrintWriter writer) |
void |
writeBinary(DataOutput out) |
public byte[][] centroids
public ByteCentroidsResult()
public String asciiHeader()
asciiHeader in interface ReadableASCIIasciiHeader in interface WriteableASCIIpublic byte[] binaryHeader()
binaryHeader in interface ReadableBinarybinaryHeader in interface WriteableBinarypublic void readASCII(Scanner br) throws IOException
readASCII in interface ReadableASCIIIOExceptionpublic void readBinary(DataInput in) throws IOException
readBinary in interface ReadableBinaryIOExceptionpublic void writeASCII(PrintWriter writer) throws IOException
writeASCII in interface WriteableASCIIIOExceptionpublic void writeBinary(DataOutput out) throws IOException
writeBinary in interface WriteableBinaryIOExceptionpublic byte[][] getCentroids()
getCentroids in interface CentroidsProvider<byte[]>public HardAssigner<byte[],float[],IntFloatPair> defaultHardAssigner()
SpatialClustersdefaultHardAssigner in interface SpatialClusters<byte[]>public int numDimensions()
SpatialClustersnumDimensions in interface SpatialClusters<byte[]>public int numClusters()
SpatialClustersnumClusters in interface SpatialClusters<byte[]>