Package edu.cmu.tetrad.cluster
Interface ClusteringAlgorithm
- All Known Implementing Classes:
KMeans
public interface ClusteringAlgorithm
Represents a clustering algorithm to cluster some data. The data is a TetradMatrix matrix with rows as cases and
columns as variables. The purpose of this interface is to allow a clustering algorithm to have parameters set so that
it can be passed to another class to do clustering on data.
- Version:
- $Id: $Id
- Author:
- josephramsey
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clusters the given data set.getClusters.void
setVerbose
(boolean verbose) True iff verbose output should be printed.
-
Method Details
-
cluster
Clusters the given data set.- Parameters:
data
- An n x m double matrix with n cases (rows) and m variables (columns). Makes an int array c such that c[i] is the cluster that case i is placed into, or -1 if case i is not placed into a cluster (as a result of its being eliminated from consideration, for instance).
-
getClusters
-
setVerbose
void setVerbose(boolean verbose) True iff verbose output should be printed.- Parameters:
verbose
- True iff verbose output should be printed.
-