public class OnlineKMeans<T extends DoubleVector> extends Object implements Generator<OnlineClustering<T>>
Generator
class for generating a new OnlineKMeansClustering
instance. This class supports the following properties:
Modifier and Type | Class and Description |
---|---|
class |
OnlineKMeans.OnlineKMeansClustering<T extends DoubleVector>
A simple online implementation of K-Means clustering for
Vector s,
with the option to perform agglomerative clustering once all elements
have been clustered. |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_CLUSTERS
The default number of clusters.
|
static double |
DEFAULT_MERGE_THRESHOLD
The default merge threshold.
|
static String |
MERGE_THRESHOLD_PROPERTY
The property for setting the threshold for merging two clusters.
|
Constructor and Description |
---|
OnlineKMeans()
Creates a new generator using the system properties.
|
OnlineKMeans(Properties props)
Creates a new generator using the given properties.
|
Modifier and Type | Method and Description |
---|---|
OnlineClustering<T> |
generate()
Generates a new instance of a
OnlineClustering based on the
values used to construct this generator. |
String |
toString() |
public static final String MERGE_THRESHOLD_PROPERTY
public static final double DEFAULT_MERGE_THRESHOLD
public static final int DEFAULT_MAX_CLUSTERS
public OnlineKMeans()
public OnlineKMeans(Properties props)
public OnlineClustering<T> generate()
OnlineClustering
based on the
values used to construct this generator.generate
in interface Generator<OnlineClustering<T extends DoubleVector>>
Copyright © 2012. All Rights Reserved.