public class AutomaticStopClustering extends Object implements Clustering
Clustering
implementation that iteratively computes the k-means
clustering of a data set and fines the value of k that produced the most
significant advantage compared to other values of k. This approach attempts
to find a "knee" or "bend" in the graph of objective scores for k-means with
different values of k. This clustering method is an implementation of the
method specified in the following paper:
Modifier and Type | Class and Description |
---|---|
static class |
AutomaticStopClustering.Measure
The available stopping criteria.
|
Modifier and Type | Field and Description |
---|---|
static String |
CLUSTERING_METHOD
The number of clusters to stop clustering at.
|
static String |
NUM_CLUSTERS_END
The number of clusters to stop clustering at.
|
static String |
NUM_CLUSTERS_START
The number of clusters to start clustering at.
|
static String |
PK1_THRESHOLD
The number of clusters to stop clustering at.
|
static String |
PROPERTY_PREFIX
A property prefix used for properties.
|
Constructor and Description |
---|
AutomaticStopClustering() |
Modifier and Type | Method and Description |
---|---|
Assignments |
cluster(Matrix m,
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). |
public static final String PROPERTY_PREFIX
public static final String NUM_CLUSTERS_START
public static final String NUM_CLUSTERS_END
public static final String CLUSTERING_METHOD
public static final String PK1_THRESHOLD
public 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.
Iteratively computes the k-means clustering of the dataset m
using a specified method for determineing when to automaticaly stop
clustering.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.public Assignments cluster(Matrix m, int numClusters, Properties props)
Matrix
into the specified
number of clusters. The set of cluster assignments are returned for each
row in the matrix.
Iteratively computes the k-means clustering of the dataset m
using a specified method for determineing when to automaticaly stop
clustering.cluster
in interface Clustering
m
- 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.