MOA 12.03
Real Time Analytics for Data Streams
moa.streams.clustering.RandomRBFGeneratorEvents Class Reference
Inheritance diagram for moa.streams.clustering.RandomRBFGeneratorEvents:
Collaboration diagram for moa.streams.clustering.RandomRBFGeneratorEvents:

List of all members.

Classes

class  GeneratorCluster

Public Member Functions

 RandomRBFGeneratorEvents ()
InstancesHeader getHeader ()
 Gets the header of this stream.
long estimatedRemainingInstances ()
 Gets the estimated number of remaining instances in this stream.
boolean hasMoreInstances ()
 Gets whether this stream has more instances to output.
boolean isRestartable ()
 Gets whether this stream can restart.
void prepareForUseImpl (TaskMonitor monitor, ObjectRepository repository)
 This method describes the implementation of how to prepare this object for use.
void restart ()
 Restarts this stream.
Instance nextInstance ()
 Gets the next instance from this stream.
Clustering getGeneratingClusters ()
Clustering getMicroClustering ()
void getDescription (StringBuilder sb, int indent)
 Returns a string representation of this object.
synchronized void addClusterChangeListener (ClusterEventListener l)
 Add a listener.
synchronized void removeClusterChangeListener (ClusterEventListener l)
 Remove a listener.
String getPurposeString ()
 Gets the purpose of this object.
String getParameterString ()

Public Attributes

IntOption modelRandomSeedOption
IntOption instanceRandomSeedOption
IntOption numClusterOption
IntOption numClusterRangeOption
FloatOption kernelRadiiOption
FloatOption kernelRadiiRangeOption
FloatOption densityRangeOption
IntOption speedOption
IntOption speedRangeOption
FloatOption noiseLevelOption
FlagOption noiseInClusterOption
IntOption eventFrequencyOption
FlagOption eventMergeSplitOption
FlagOption eventDeleteCreateOption

Protected Member Functions

void generateHeader ()
void initKernels ()
void fireClusterChange (long timestamp, String type, String message)
 Fire a ClusterChangeEvent to all registered listeners.

Protected Attributes

Random instanceRandom
InstancesHeader streamHeader

Detailed Description

Definition at line 55 of file RandomRBFGeneratorEvents.java.


Constructor & Destructor Documentation

moa.streams.clustering.RandomRBFGeneratorEvents.RandomRBFGeneratorEvents ( )

Definition at line 458 of file RandomRBFGeneratorEvents.java.

Here is the call graph for this function:


Member Function Documentation

synchronized void moa.streams.clustering.RandomRBFGeneratorEvents.addClusterChangeListener ( ClusterEventListener  l)

Add a listener.

Definition at line 922 of file RandomRBFGeneratorEvents.java.

long moa.streams.clustering.RandomRBFGeneratorEvents.estimatedRemainingInstances ( )

Gets the estimated number of remaining instances in this stream.

Returns:
the estimated number of instances to get from this stream

Implements moa.streams.InstanceStream.

Definition at line 468 of file RandomRBFGeneratorEvents.java.

void moa.streams.clustering.RandomRBFGeneratorEvents.fireClusterChange ( long  timestamp,
String  type,
String  message 
) [protected]

Fire a ClusterChangeEvent to all registered listeners.

Definition at line 936 of file RandomRBFGeneratorEvents.java.

Here is the call graph for this function:

void moa.streams.clustering.RandomRBFGeneratorEvents.generateHeader ( ) [protected]

Definition at line 500 of file RandomRBFGeneratorEvents.java.

Referenced by moa.streams.clustering.RandomRBFGeneratorEvents.prepareForUseImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

void moa.streams.clustering.RandomRBFGeneratorEvents.getDescription ( StringBuilder  sb,
int  indent 
)

Returns a string representation of this object.

Used in AbstractMOAObject.toString to give a string representation of the object.

Parameters:
sbthe stringbuilder to add the description
indentthe number of characters to indent

Implements moa.MOAObject.

Definition at line 855 of file RandomRBFGeneratorEvents.java.

Clustering moa.streams.clustering.RandomRBFGeneratorEvents.getGeneratingClusters ( )

Definition at line 565 of file RandomRBFGeneratorEvents.java.

Here is the call graph for this function:

InstancesHeader moa.streams.clustering.RandomRBFGeneratorEvents.getHeader ( )

Gets the header of this stream.

This is useful to know attributes and classes. InstancesHeader is an extension of weka.Instances.

Returns:
the header of this stream

Implements moa.streams.InstanceStream.

Definition at line 464 of file RandomRBFGeneratorEvents.java.

Referenced by moa.streams.clustering.RandomRBFGeneratorEvents.nextInstance().

Here is the caller graph for this function:

Clustering moa.streams.clustering.RandomRBFGeneratorEvents.getMicroClustering ( )

Definition at line 573 of file RandomRBFGeneratorEvents.java.

Here is the call graph for this function:

String moa.streams.clustering.RandomRBFGeneratorEvents.getParameterString ( )

Definition at line 967 of file RandomRBFGeneratorEvents.java.

String moa.streams.clustering.RandomRBFGeneratorEvents.getPurposeString ( )

Gets the purpose of this object.

Returns:
the string with the purpose of this object

Reimplemented from moa.options.AbstractOptionHandler.

Definition at line 962 of file RandomRBFGeneratorEvents.java.

boolean moa.streams.clustering.RandomRBFGeneratorEvents.hasMoreInstances ( )

Gets whether this stream has more instances to output.

This is useful when reading streams from files.

Returns:
true if this stream has more instances to output

Implements moa.streams.InstanceStream.

Definition at line 472 of file RandomRBFGeneratorEvents.java.

void moa.streams.clustering.RandomRBFGeneratorEvents.initKernels ( ) [protected]

Definition at line 516 of file RandomRBFGeneratorEvents.java.

Referenced by moa.streams.clustering.RandomRBFGeneratorEvents.restart().

Here is the call graph for this function:

Here is the caller graph for this function:

boolean moa.streams.clustering.RandomRBFGeneratorEvents.isRestartable ( )

Gets whether this stream can restart.

Returns:
true if this stream can restart

Implements moa.streams.InstanceStream.

Definition at line 476 of file RandomRBFGeneratorEvents.java.

Instance moa.streams.clustering.RandomRBFGeneratorEvents.nextInstance ( )

Gets the next instance from this stream.

Returns:
the next instance of this stream

Implements moa.streams.InstanceStream.

Definition at line 525 of file RandomRBFGeneratorEvents.java.

Here is the call graph for this function:

void moa.streams.clustering.RandomRBFGeneratorEvents.prepareForUseImpl ( TaskMonitor  monitor,
ObjectRepository  repository 
) [virtual]

This method describes the implementation of how to prepare this object for use.

All classes that extends this class have to implement prepareForUseImpl and not prepareForUse since prepareForUse calls prepareForUseImpl.

Parameters:
monitorthe TaskMonitor to use
repositorythe ObjectRepository to use

Implements moa.options.AbstractOptionHandler.

Definition at line 481 of file RandomRBFGeneratorEvents.java.

Here is the call graph for this function:

synchronized void moa.streams.clustering.RandomRBFGeneratorEvents.removeClusterChangeListener ( ClusterEventListener  l)

Remove a listener.

Definition at line 929 of file RandomRBFGeneratorEvents.java.

void moa.streams.clustering.RandomRBFGeneratorEvents.restart ( )

Restarts this stream.

It must be similar to starting a new stream from scratch.

Implements moa.streams.InstanceStream.

Definition at line 487 of file RandomRBFGeneratorEvents.java.

Referenced by moa.streams.clustering.RandomRBFGeneratorEvents.prepareForUseImpl().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Initial value:
 new FloatOption("densityRange", 'd',
                    "Offset of the average weight a cluster has. Value of 0 means all cluster " +
                    "contain the same amount of points.", 0, 0, 1)

Definition at line 79 of file RandomRBFGeneratorEvents.java.

Initial value:
 new FlagOption("eventDeleteCreate", 'C',
                                "Enable emering and disapperaing of clusters. Set eventFrequency and numClusterRange!")

Definition at line 101 of file RandomRBFGeneratorEvents.java.

Initial value:
 new IntOption("eventFrequency", 'E',
                    "Event frequency. Enable at least one of the events below and set numClusterRange!", 30000, 0, Integer.MAX_VALUE)

Definition at line 95 of file RandomRBFGeneratorEvents.java.

Referenced by moa.streams.clustering.RandomRBFGeneratorEvents.restart().

Initial value:
 new FlagOption("eventMergeSplitOption", 'M',
                    "Enable merging and splitting of clusters. Set eventFrequency and numClusterRange!")

Definition at line 98 of file RandomRBFGeneratorEvents.java.

Initial value:
 new IntOption(
                    "instanceRandomSeed", 'i',
                    "Seed for random generation of instances.", 5)

Definition at line 63 of file RandomRBFGeneratorEvents.java.

Referenced by moa.streams.clustering.RandomRBFGeneratorEvents.restart().

Initial value:
 new FloatOption("kernelRadius", 'R',
                    "The average radii of the centroids in the model.", 0.07, 0, 1)

Definition at line 73 of file RandomRBFGeneratorEvents.java.

Initial value:
 new FloatOption("kernelRadiusRange", 'r',
                    "Deviation of average radii of the centroids in the model.", 0, 0, 1)

Definition at line 76 of file RandomRBFGeneratorEvents.java.

Initial value:
 new IntOption("modelRandomSeed",
                    'm', "Seed for random generation of model.", 1)

Definition at line 60 of file RandomRBFGeneratorEvents.java.

Initial value:
 new FlagOption("noiseInCluster", 'n',
                    "Allow noise to be placed within a cluster")

Definition at line 92 of file RandomRBFGeneratorEvents.java.

Referenced by moa.streams.clustering.RandomRBFGeneratorEvents.RandomRBFGeneratorEvents().

Initial value:
 new FloatOption("noiseLevel", 'N',
                    "Noise level", 0.1, 0, 1)

Definition at line 89 of file RandomRBFGeneratorEvents.java.

Referenced by moa.streams.clustering.RandomRBFGeneratorEvents.nextInstance().

Initial value:
 new IntOption("numCluster", 'K',
                    "The average number of centroids in the model.", 5, 1, Integer.MAX_VALUE)

Definition at line 67 of file RandomRBFGeneratorEvents.java.

Referenced by moa.streams.clustering.RandomRBFGeneratorEvents.generateHeader(), and moa.streams.clustering.RandomRBFGeneratorEvents.initKernels().

Initial value:
 new IntOption("numClusterRange", 'k',
                    "Deviation of the number of centroids in the model.", 3, 0, Integer.MAX_VALUE)

Definition at line 70 of file RandomRBFGeneratorEvents.java.

Initial value:
 new IntOption("speed", 'V',
                    "Kernels move a predefined distance of 0.01 every X points", 500, 1, Integer.MAX_VALUE)

Definition at line 83 of file RandomRBFGeneratorEvents.java.

Initial value:
 new IntOption("speedRange", 'v',
                    "Speed/Velocity point offset", 0, 0, Integer.MAX_VALUE)

Definition at line 86 of file RandomRBFGeneratorEvents.java.


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