MOA 12.03
Real Time Analytics for Data Streams
moa.clusterers.streamkm.StreamKM Class Reference
Inheritance diagram for moa.clusterers.streamkm.StreamKM:
Collaboration diagram for moa.clusterers.streamkm.StreamKM:

List of all members.

Public Member Functions

void resetLearningImpl ()
void trainOnInstanceImpl (Instance inst)
void getModelDescription (StringBuilder out, int indent)
boolean isRandomizable ()
double[] getVotesForInstance (Instance inst)
Clustering getClusteringResult ()
double lloydPlusPlus (int k, int n, int d, Point points[], Point centres[])
double targetFunctionValue (int k, int n, Point[] centres, Point[] points)
 computes the target function for the given pointarray points[] (of size n) with the given array of centres centres[] (of size k)

Public Attributes

IntOption sizeCoresetOption
IntOption numClustersOption
IntOption widthOption
IntOption randomSeedOption

Protected Member Functions

Measurement[] getModelMeasurementsImpl ()

Protected Attributes

MTRandom clustererRandom
Point[] centresStreamingCoreset
int numberInstances
int dimension
int length
int numberOfCentres
int coresetsize
BucketManager manager
boolean initialized = false

Detailed Description

Author:
Marcel R. Ackermann, Christiane Lammersen, Marcus Maertens, Christoph Raupach, Christian Sohler, Kamil Swierkot

Definition at line 17 of file StreamKM.java.


Member Function Documentation

Clustering moa.clusterers.streamkm.StreamKM.getClusteringResult ( )

Implements moa.clusterers.Clusterer.

Definition at line 114 of file StreamKM.java.

Here is the call graph for this function:

void moa.clusterers.streamkm.StreamKM.getModelDescription ( StringBuilder  out,
int  indent 
) [virtual]

Implements moa.clusterers.AbstractClusterer.

Definition at line 100 of file StreamKM.java.

Measurement [] moa.clusterers.streamkm.StreamKM.getModelMeasurementsImpl ( ) [protected, virtual]

Implements moa.clusterers.AbstractClusterer.

Definition at line 95 of file StreamKM.java.

double [] moa.clusterers.streamkm.StreamKM.getVotesForInstance ( Instance  inst)

Implements moa.clusterers.Clusterer.

Definition at line 108 of file StreamKM.java.

boolean moa.clusterers.streamkm.StreamKM.isRandomizable ( )

Implements moa.clusterers.Clusterer.

Definition at line 104 of file StreamKM.java.

double moa.clusterers.streamkm.StreamKM.lloydPlusPlus ( int  k,
int  n,
int  d,
Point  points[],
Point  centres[] 
)

Definition at line 130 of file StreamKM.java.

Referenced by moa.clusterers.streamkm.StreamKM.trainOnInstanceImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

void moa.clusterers.streamkm.StreamKM.resetLearningImpl ( ) [virtual]

Implements moa.clusterers.AbstractClusterer.

Definition at line 49 of file StreamKM.java.

Here is the call graph for this function:

double moa.clusterers.streamkm.StreamKM.targetFunctionValue ( int  k,
int  n,
Point[]  centres,
Point[]  points 
)

computes the target function for the given pointarray points[] (of size n) with the given array of centres centres[] (of size k)

Definition at line 271 of file StreamKM.java.

Referenced by moa.clusterers.streamkm.StreamKM.lloydPlusPlus().

Here is the caller graph for this function:

void moa.clusterers.streamkm.StreamKM.trainOnInstanceImpl ( Instance  inst) [virtual]

Implements moa.clusterers.AbstractClusterer.

Definition at line 61 of file StreamKM.java.

Here is the call graph for this function:


Member Data Documentation

Initial value:
 new IntOption(
                        "numClusters", 'k',
                        "Number of clusters to compute.", 5)

Definition at line 22 of file StreamKM.java.

Referenced by moa.clusterers.streamkm.StreamKM.resetLearningImpl().

Initial value:
 new IntOption("randomSeed", 'r',
                                        "Seed for random behaviour of the classifier.", 1)

Reimplemented from moa.clusterers.AbstractClusterer.

Definition at line 29 of file StreamKM.java.

Referenced by moa.clusterers.streamkm.StreamKM.resetLearningImpl().

Initial value:
 new IntOption("sizeCoreset",
                        's', "Size of the coreset.", 10000)

Definition at line 19 of file StreamKM.java.

Referenced by moa.clusterers.streamkm.StreamKM.resetLearningImpl().

Initial value:
 new IntOption("width",
                        'w', "Size of Window for training learner.", 100000, 0, Integer.MAX_VALUE)

Definition at line 26 of file StreamKM.java.

Referenced by moa.clusterers.streamkm.StreamKM.resetLearningImpl(), and moa.clusterers.streamkm.StreamKM.trainOnInstanceImpl().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations