public class ClutoClustering extends Object implements Clustering
Modifier and Type | Class and Description |
---|---|
static class |
ClutoClustering.Criterion
The crition function by which CLUTO should evaluate the clustering
assignment.
|
static class |
ClutoClustering.Method
The method by which CLUTO should cluster the data points
|
Modifier and Type | Field and Description |
---|---|
static String |
CLUSTER_CRITERION
The property to set the name of a
ClutoClustering.Criterion that
Cluto should use in clustering the data. |
static String |
CLUSTER_METHOD
The property to set the name of a
ClutoClustering.Method that
Cluto should use in clustering the data. |
static String |
PROPERTY_PREFIX
A property prefix for specifiying options when using Cluto.
|
Constructor and Description |
---|
ClutoClustering()
Creates a new
ClutoClustering instance. |
Modifier and Type | Method and Description |
---|---|
Assignments |
cluster(Matrix matrix,
int numClusters,
ClutoClustering.Method clusterMethod,
ClutoClustering.Criterion criterionMethod)
Clusters the set of rows in the given
Matrix into a specified
number of clusters using the specified CLUTO clustering method. |
Assignments |
cluster(Matrix matrix,
int numClusters,
Properties properties)
Clusters the set of rows in the given
Matrix into the specified
number of clusters. |
Assignments |
cluster(Matrix matrix,
Properties properties)
Throws an
UnsupportedOperationException if called, as CLUTO
requires the number of clusters to be specified. |
public static final String PROPERTY_PREFIX
public static final String CLUSTER_METHOD
ClutoClustering.Method
that
Cluto should use in clustering the data.public static final String CLUSTER_CRITERION
ClutoClustering.Criterion
that
Cluto should use in clustering the data.public Assignments cluster(Matrix matrix, Properties properties)
UnsupportedOperationException
if called, as CLUTO
requires the number of clusters to be specified.cluster
in interface Clustering
matrix
- the Matrix
whose row data points are to be
clusteredproperties
- 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, int numClusters, Properties properties)
Matrix
into the specified
number of clusters. The set of cluster assignments are returned for each
row in the matrix.cluster
in interface Clustering
properties
- the properties to use for clustering with CLUTO. See
ClutoClustering
for the list of supported properties.matrix
- the Matrix
whose row data points are to be
clusterednumClusters
- the number of clusters to generateAssignment
instances that indicate zero or
more clusters to which each row belongs.public Assignments cluster(Matrix matrix, int numClusters, ClutoClustering.Method clusterMethod, ClutoClustering.Criterion criterionMethod)
Matrix
into a specified
number of clusters using the specified CLUTO clustering method.matrix
- the Matrix
containing data points to clusternumClusters
- the number of clusters to generateclusterMethod
- the method by which cluto should cluster the rowsAssignment
instances that indicate zero or
more clusters to which each row belongs.Copyright © 2012. All Rights Reserved.