MOA 12.03
Real Time Analytics for Data Streams
|
Stream generator for a random radial basis function stream. More...
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 |
Stream generator for a random radial basis function stream.
Definition at line 45 of file RandomRBFGenerator.java.
long moa.streams.generators.RandomRBFGenerator.estimatedRemainingInstances | ( | ) |
Gets the estimated number of remaining instances in 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().
void moa.streams.generators.RandomRBFGenerator.generateHeader | ( | ) | [protected] |
Definition at line 150 of file RandomRBFGenerator.java.
Referenced by moa.streams.generators.RandomRBFGenerator.prepareForUseImpl().
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.
sb | the stringbuilder to add the description |
indent | the 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.
Implements moa.streams.InstanceStream.
Definition at line 100 of file RandomRBFGenerator.java.
Referenced by moa.streams.generators.RandomRBFGenerator.nextInstance().
String moa.streams.generators.RandomRBFGenerator.getPurposeString | ( | ) |
Gets 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.
Implements moa.streams.InstanceStream.
Definition at line 110 of file RandomRBFGenerator.java.
boolean moa.streams.generators.RandomRBFGenerator.isRestartable | ( | ) |
Gets whether 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.
Implements moa.streams.InstanceStream.
Reimplemented in moa.streams.generators.RandomRBFGeneratorDrift.
Definition at line 125 of file RandomRBFGenerator.java.
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
.
monitor | the TaskMonitor to use |
repository | the ObjectRepository to use |
Implements moa.options.AbstractOptionHandler.
Definition at line 91 of file RandomRBFGenerator.java.
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().
Centroid [] moa.streams.generators.RandomRBFGenerator.centroids [protected] |
Definition at line 84 of file RandomRBFGenerator.java.
Referenced by moa.streams.generators.RandomRBFGeneratorDrift.generateCentroids(), moa.streams.generators.RandomRBFGenerator.generateCentroids(), moa.streams.generators.RandomRBFGeneratorDrift.nextInstance(), and moa.streams.generators.RandomRBFGenerator.nextInstance().
double [] moa.streams.generators.RandomRBFGenerator.centroidWeights [protected] |
Definition at line 86 of file RandomRBFGenerator.java.
Referenced by moa.streams.generators.RandomRBFGenerator.generateCentroids(), and moa.streams.generators.RandomRBFGenerator.nextInstance().
Random moa.streams.generators.RandomRBFGenerator.instanceRandom [protected] |
Definition at line 88 of file RandomRBFGenerator.java.
Referenced by moa.streams.generators.RandomRBFGenerator.nextInstance(), and moa.streams.generators.RandomRBFGenerator.restart().
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().
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().
new IntOption("numAtts", 'a', "The number of attributes to generate.", 10, 0, Integer.MAX_VALUE)
Definition at line 65 of file RandomRBFGenerator.java.
Referenced by moa.streams.generators.RandomRBFGeneratorDrift.generateCentroids(), moa.streams.generators.RandomRBFGenerator.generateCentroids(), moa.streams.generators.RandomRBFGenerator.generateHeader(), moa.streams.generators.RandomRBFGeneratorDrift.nextInstance(), and moa.streams.generators.RandomRBFGenerator.nextInstance().
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().
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().
Definition at line 82 of file RandomRBFGenerator.java.
Referenced by moa.streams.generators.RandomRBFGenerator.generateHeader(), and moa.streams.generators.RandomRBFGenerator.getHeader().