public interface Clustering
Assignment. A
Matrix is passed in where each row is to be considered the set of
data points to cluster.
Implementations should not modify the contents of a Matrix to
cluster. Implementations may use a passed in properties object to support
additional parameters that for clustering. By convention, implementations
should specify a set of default values such that the matrix rows can be
clustered if no properties are specified.
If a clustering algorithm requires the number of clusters to be specified, an
implementation may throw an UnsupportedOperationException when the
number of clusters is not specified.| Modifier and Type | Method and Description |
|---|---|
Assignments |
cluster(Matrix matrix,
int numClusters,
Properties props)
Clusters the set of rows in the given
Matrix into the specified
number of clusters. |
Assignments |
cluster(Matrix matrix,
Properties props)
Clusters the set of rows in the given
Matrix without a specified
number of clusters (optional operation). |
Assignments cluster(Matrix matrix, Properties props)
Matrix without a specified
number of clusters (optional operation). The set of cluster assignments
are returned for each row in the matrix.matrix - the Matrix whose row data points are to be
clusteredprops - the properties to use for any parameters each clustering
algorithm may needAssignment instances that indicate zero or
more clusters to which each row belongs.Assignments cluster(Matrix matrix, int numClusters, Properties props)
Matrix into the specified
number of clusters. The set of cluster assignments are returned for each
row in the matrix.matrix - the Matrix whose row data points are to be
clusterednumClusters - the number of clusters to generateprops - the properties to use for any parameters each clustering
algorithm may needAssignment instances that indicate zero or
more clusters to which each row belongs.Copyright © 2012. All Rights Reserved.