public class DataMatrixLinkClustering extends Object implements Clustering
Constructor and Description |
---|
DataMatrixLinkClustering() |
DataMatrixLinkClustering(AffinityMatrixCreator creator) |
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). |
static AffinityMatrixCreator |
createDefaultAffinityMatrixCreator() |
public DataMatrixLinkClustering()
public DataMatrixLinkClustering(AffinityMatrixCreator creator)
public static AffinityMatrixCreator createDefaultAffinityMatrixCreator()
public Assignments cluster(Matrix matrix, int numClusters, Properties props)
Clustering
Matrix
into the specified
number of clusters. The set of cluster assignments are returned for each
row in the matrix.cluster
in interface Clustering
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.public Assignments cluster(Matrix matrix, Properties props)
Clustering
Matrix
without a specified
number of clusters (optional operation). The set of cluster assignments
are returned for each row in the matrix.cluster
in interface Clustering
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.Copyright © 2012. All Rights Reserved.