public class KMeansClustering extends Object
Constructor and Description |
---|
KMeansClustering(double[][] samples,
String[] sampleIds,
int numClusters)
Constructor.
|
KMeansClustering(File dataFile,
int numClusters)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Main method for testing purposes.
|
public KMeansClustering(double[][] samples, String[] sampleIds, int numClusters)
samples
- the datasampleIds
- the sample identifiersnumClusters
- the number of clusterspublic KMeansClustering(File dataFile, int numClusters)
dataFile
- the file with the datanumClusters
- the number of clusterspublic static void main(String[] args)
args
- the command line argumentsCopyright © 2015. All rights reserved.