public class StreamingKMeans<T extends DoubleVector> extends Object implements Generator<OnlineClustering<T>>
Modifier and Type | Class and Description |
---|---|
class |
StreamingKMeans.StreamingKMeansClustering<T extends DoubleVector>
The internal
OnlineClustering implementation. |
Modifier and Type | Field and Description |
---|---|
static String |
ALPHA_PROPERTY
An alpha value, see page 6 in the paper for details.
|
static String |
BETA_PROPERTY
A beta value, see page 6 in the paper for details.
|
static String |
COFL_PROPERTY |
static double |
DEFAULT_ALPHA
The default alpha value.
|
static double |
DEFAULT_BETA
The default beta value.
|
static double |
DEFAULT_COFL |
static double |
DEFAULT_GAMMA
The default gamma value.
|
static double |
DEFAULT_KOFL |
static int |
DEFAULT_NUM_CLUSTERS
The default number of clusters.
|
static int |
DEFAULT_NUM_POINTS
The default number of clusters.
|
static String |
GAMMA_PROPERTY
A gamma value, see page 6 in the paper for details.
|
static String |
KOFL_PROPERTY |
static String |
NUM_POINTS_PROPERTY
An estimate of the total number of data points that will be clustered.
|
Constructor and Description |
---|
StreamingKMeans()
Creates a new generator using the system properties.
|
StreamingKMeans(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
StreamingClustering based on the
values used to construct this generator. |
String |
toString()
Returns "StreamingKMeans"
|
public static final String NUM_POINTS_PROPERTY
public static final String ALPHA_PROPERTY
public static final String COFL_PROPERTY
public static final String KOFL_PROPERTY
public static final String BETA_PROPERTY
public static final String GAMMA_PROPERTY
public static final int DEFAULT_NUM_CLUSTERS
public static final int DEFAULT_NUM_POINTS
public static final double DEFAULT_ALPHA
public static final double DEFAULT_COFL
public static final double DEFAULT_KOFL
public static final double DEFAULT_BETA
public static final double DEFAULT_GAMMA
public StreamingKMeans()
public StreamingKMeans(Properties props)
public OnlineClustering<T> generate()
StreamingClustering
based on the
values used to construct this generator.generate
in interface Generator<OnlineClustering<T extends DoubleVector>>
Copyright © 2012. All Rights Reserved.