DATATYPE - the primitive array datatype which represents a centroid of this
cluster.DISTANCES - primitive array datatype for recording distances between points
and cluster centroids.DISTANCE_INDEX - datatype for representing an public interface HardAssigner<DATATYPE,DISTANCES,DISTANCE_INDEX> extends Assigner<DATATYPE>
HardAssigner interface describes classes that assign a spatial
point to a single cluster.| Modifier and Type | Method and Description |
|---|---|
int |
assign(DATATYPE data)
Assign a single point to a cluster.
|
int[] |
assign(DATATYPE[] data)
Assign data to a cluster.
|
DISTANCE_INDEX |
assignDistance(DATATYPE data)
Assign a single point to a cluster.
|
void |
assignDistance(DATATYPE[] data,
int[] indices,
DISTANCES distances)
Assign data to clusters.
|
int |
size()
The number of centroids or unique ids that can be generated.
|
numDimensionsint[] assign(DATATYPE[] data)
data - the data.int assign(DATATYPE data)
data - datum to assign.void assignDistance(DATATYPE[] data, int[] indices, DISTANCES distances)
data - the data.indices - the cluster index for each data point.distances - the distance to the closest cluster for each data point.DISTANCE_INDEX assignDistance(DATATYPE data)
data - point to assign.int size()