MOA 12.03
Real Time Analytics for Data Streams
moa.streams.generators.RandomRBFGenerator Class Reference

Stream generator for a random radial basis function stream. More...

Inheritance diagram for moa.streams.generators.RandomRBFGenerator:
Collaboration diagram for moa.streams.generators.RandomRBFGenerator:

List of all members.

Classes

class  Centroid

Public Member Functions

String getPurposeString ()
 Gets the purpose of this object.
void prepareForUseImpl (TaskMonitor monitor, ObjectRepository repository)
 This method describes the implementation of how to prepare this object for use.
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 restart ()
 Restarts this stream.
Instance nextInstance ()
 Gets the next instance from this stream.
void getDescription (StringBuilder sb, int indent)
 Returns a string representation of this object.

Public Attributes

IntOption modelRandomSeedOption
IntOption instanceRandomSeedOption
IntOption numClassesOption
IntOption numAttsOption
IntOption numCentroidsOption

Protected Member Functions

void generateHeader ()
void generateCentroids ()

Protected Attributes

InstancesHeader streamHeader
Centroid[] centroids
double[] centroidWeights
Random instanceRandom

Detailed Description

Stream generator for a random radial basis function stream.

Author:
Richard Kirkby (rkirkby@cs.waikato.ac.nz)
Version:
Revision:
7

Definition at line 45 of file RandomRBFGenerator.java.


Member Function Documentation

long moa.streams.generators.RandomRBFGenerator.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 105 of file RandomRBFGenerator.java.

void moa.streams.generators.RandomRBFGenerator.generateCentroids ( ) [protected]

Reimplemented in moa.streams.generators.RandomRBFGeneratorDrift.

Definition at line 165 of file RandomRBFGenerator.java.

Referenced by moa.streams.generators.RandomRBFGenerator.prepareForUseImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

void moa.streams.generators.RandomRBFGenerator.generateHeader ( ) [protected]

Definition at line 150 of file RandomRBFGenerator.java.

Referenced by moa.streams.generators.RandomRBFGenerator.prepareForUseImpl().

Here is the call graph for this function:

Here is the caller graph for this function:

void moa.streams.generators.RandomRBFGenerator.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.

Reimplemented in moa.streams.generators.RandomRBFGeneratorDrift.

Definition at line 183 of file RandomRBFGenerator.java.

InstancesHeader moa.streams.generators.RandomRBFGenerator.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 100 of file RandomRBFGenerator.java.

Referenced by moa.streams.generators.RandomRBFGenerator.nextInstance().

Here is the caller graph for this function:

String moa.streams.generators.RandomRBFGenerator.getPurposeString ( )

Gets the purpose of this object.

Returns:
the string with the purpose of this object

Reimplemented from moa.options.AbstractOptionHandler.

Reimplemented in moa.streams.generators.RandomRBFGeneratorDrift.

Definition at line 49 of file RandomRBFGenerator.java.

boolean moa.streams.generators.RandomRBFGenerator.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 110 of file RandomRBFGenerator.java.

boolean moa.streams.generators.RandomRBFGenerator.isRestartable ( )

Gets whether this stream can restart.

Returns:
true if this stream can restart

Implements moa.streams.InstanceStream.

Definition at line 115 of file RandomRBFGenerator.java.

Instance moa.streams.generators.RandomRBFGenerator.nextInstance ( )

Gets the next instance from this stream.

Returns:
the next instance of this stream

Implements moa.streams.InstanceStream.

Reimplemented in moa.streams.generators.RandomRBFGeneratorDrift.

Definition at line 125 of file RandomRBFGenerator.java.

Here is the call graph for this function:

void moa.streams.generators.RandomRBFGenerator.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 91 of file RandomRBFGenerator.java.

Here is the call graph for this function:

void moa.streams.generators.RandomRBFGenerator.restart ( )

Restarts this stream.

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

Implements moa.streams.InstanceStream.

Definition at line 120 of file RandomRBFGenerator.java.

Referenced by moa.streams.generators.RandomRBFGenerator.prepareForUseImpl().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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

Definition at line 58 of file RandomRBFGenerator.java.

Referenced by moa.streams.generators.RandomRBFGenerator.restart().

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

Definition at line 55 of file RandomRBFGenerator.java.

Referenced by moa.streams.generators.RandomRBFGeneratorDrift.generateCentroids(), and moa.streams.generators.RandomRBFGenerator.generateCentroids().

Initial value:
 new IntOption("numCentroids", 'n',
            "The number of centroids in the model.", 50, 1, Integer.MAX_VALUE)

Definition at line 68 of file RandomRBFGenerator.java.

Referenced by moa.streams.generators.RandomRBFGenerator.generateCentroids().

Initial value:
 new IntOption("numClasses", 'c',
            "The number of classes to generate.", 2, 2, Integer.MAX_VALUE)

Definition at line 62 of file RandomRBFGenerator.java.

Referenced by moa.streams.generators.RandomRBFGenerator.generateCentroids(), and moa.streams.generators.RandomRBFGenerator.generateHeader().


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