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

List of all members.

Classes

class  Bucket

Public Member Functions

 BucketManager (int n, int d, int maxsize, MTRandom random)
 initializes a bucketmanager for n points with bucketsize maxsize and dimension d

Protected Attributes

int numberOfBuckets
int maxBucketsize
Bucket[] buckets
MTRandom clustererRandom
TreeCoreset treeCoreset

Package Functions

void insertPoint (Point p)
 inserts a single point into the bucketmanager
Point[] getCoresetFromManager (int d)
 It may happen that the manager is not full (since n is not always a power of 2).

Detailed Description

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

Definition at line 9 of file BucketManager.java.


Constructor & Destructor Documentation

moa.clusterers.streamkm.BucketManager.BucketManager ( int  n,
int  d,
int  maxsize,
MTRandom  random 
)

initializes a bucketmanager for n points with bucketsize maxsize and dimension d

Definition at line 38 of file BucketManager.java.


Member Function Documentation

Point [] moa.clusterers.streamkm.BucketManager.getCoresetFromManager ( int  d) [package]

It may happen that the manager is not full (since n is not always a power of 2).

In this case we extract the coreset from the manager by computing a coreset of all nonempty buckets

Case 1: the last bucket is full => n is a power of 2 and we return the contents of the last bucket

Case2: the last bucket is not full => we compute a coreset of all nonempty buckets

this operation should only be called after the streaming process is finished

Definition at line 128 of file BucketManager.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.BucketManager.insertPoint ( Point  p) [package]

inserts a single point into the bucketmanager

Definition at line 53 of file BucketManager.java.

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

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation


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