public class Clusterer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BIC |
static int |
GAUSS |
static int |
MIN_DIST |
static int |
SILHOUETTE |
Constructor and Description |
---|
Clusterer(java.util.List<Clusterable> list)
Initiate the class by passing it a list of data points.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<Clusterable,java.util.List<Clusterable>> |
cluster(java.util.List<Clusterable> centers,
int max,
int type,
java.lang.Number... parameters)
This is the major control function of the class.
|
public static final int BIC
public static final int GAUSS
public static final int SILHOUETTE
public static final int MIN_DIST
public Clusterer(java.util.List<Clusterable> list)
public java.util.Map<Clusterable,java.util.List<Clusterable>> cluster(java.util.List<Clusterable> centers, int max, int type, java.lang.Number... parameters) throws NotImplementedException
centers
- A list of initial centroids.max
- The maximum number of centroids at which the algorithm is stopped.type
- The method used to determine the optimal number of clusters.parameters
- Mode specific parameters.NotImplementedException