Java weka.clusterers SimpleKMeans fields, constructors, methods, implement or subclass

Example usage for Java weka.clusterers SimpleKMeans fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for weka.clusterers SimpleKMeans.

The text is from its open source code.

Constructor

SimpleKMeans()
the default constructor.

Method

voidbuildClusterer(Instances data)
Generates a clusterer.
intclusterInstance(Instance instance)
Classifies a given instance.
int[]getAssignments()
Gets the assignments for each instance.
InstancesgetClusterCentroids()
Gets the the cluster centroids.
double[][][]getClusterNominalCounts()
Returns for each cluster the weighted frequency counts for the values of each nominal attribute.
double[]getClusterSizes()
Gets the sum of weights for all the instances in each cluster.
InstancesgetClusterStandardDevs()
Gets the standard deviations of the numeric attributes in each cluster.
DistanceFunctiongetDistanceFunction()
returns the distance function currently in use.
intgetNumClusters()
gets the number of clusters to generate.
doublegetSquaredError()
Gets the squared error for all clusters.
intnumberOfClusters()
Returns the number of clusters.
voidsetDisplayStdDevs(boolean stdD)
Sets whether standard deviations and nominal count.
voidsetDistanceFunction(DistanceFunction df)
sets the distance function to use for instance comparison.
voidsetDontReplaceMissingValues(boolean r)
Sets whether missing values are to be replaced.
voidsetFastDistanceCalc(boolean value)
Sets whether to use faster distance calculation.
voidsetMaxIterations(int n)
set the maximum number of iterations to be executed.
voidsetNumClusters(int n)
set the number of clusters to generate.
voidsetNumExecutionSlots(int slots)
Set the degree of parallelism to use.
voidsetOptions(String[] options)
Parses a given list of options.
voidsetPreserveInstancesOrder(boolean r)
Sets whether order of instances must be preserved.
voidsetSeed(int value)
Set the seed for random number generation.
StringtoString()
return a string describing this clusterer.