MOA 12.03
Real Time Analytics for Data Streams
|
Stream generator for the problem of predicting one of three waveform types. More...
Public Member Functions | |
String | getPurposeString () |
Gets the purpose of this object. | |
long | estimatedRemainingInstances () |
Gets the estimated number of remaining instances in this stream. | |
InstancesHeader | getHeader () |
Gets the header of this stream. | |
boolean | hasMoreInstances () |
Gets whether this stream has more instances to output. | |
boolean | isRestartable () |
Gets whether this stream can restart. | |
Instance | nextInstance () |
Gets the next instance from this stream. | |
void | restart () |
Restarts this stream. | |
void | getDescription (StringBuilder sb, int indent) |
Returns a string representation of this object. | |
Public Attributes | |
IntOption | instanceRandomSeedOption |
FlagOption | addNoiseOption |
Static Public Attributes | |
static final int | NUM_CLASSES = 3 |
static final int | NUM_BASE_ATTRIBUTES = 21 |
static final int | TOTAL_ATTRIBUTES_INCLUDING_NOISE = 40 |
Protected Member Functions | |
void | prepareForUseImpl (TaskMonitor monitor, ObjectRepository repository) |
This method describes the implementation of how to prepare this object for use. | |
Protected Attributes | |
InstancesHeader | streamHeader |
Random | instanceRandom |
Static Protected Attributes | |
static final int | hFunctions [][] |
Stream generator for the problem of predicting one of three waveform types.
Definition at line 44 of file WaveformGenerator.java.
long moa.streams.generators.WaveformGenerator.estimatedRemainingInstances | ( | ) |
Gets the estimated number of remaining instances in this stream.
Implements moa.streams.InstanceStream.
Definition at line 98 of file WaveformGenerator.java.
void moa.streams.generators.WaveformGenerator.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.WaveformGeneratorDrift.
Definition at line 161 of file WaveformGenerator.java.
InstancesHeader moa.streams.generators.WaveformGenerator.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 103 of file WaveformGenerator.java.
Referenced by moa.streams.generators.WaveformGeneratorDrift.nextInstance(), and moa.streams.generators.WaveformGenerator.nextInstance().
String moa.streams.generators.WaveformGenerator.getPurposeString | ( | ) |
Gets the purpose of this object.
Reimplemented from moa.options.AbstractOptionHandler.
Reimplemented in moa.streams.generators.WaveformGeneratorDrift.
Definition at line 48 of file WaveformGenerator.java.
boolean moa.streams.generators.WaveformGenerator.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 108 of file WaveformGenerator.java.
boolean moa.streams.generators.WaveformGenerator.isRestartable | ( | ) |
Gets whether this stream can restart.
Implements moa.streams.InstanceStream.
Definition at line 113 of file WaveformGenerator.java.
Instance moa.streams.generators.WaveformGenerator.nextInstance | ( | ) |
Gets the next instance from this stream.
Implements moa.streams.InstanceStream.
Reimplemented in moa.streams.generators.WaveformGeneratorDrift.
Definition at line 118 of file WaveformGenerator.java.
void moa.streams.generators.WaveformGenerator.prepareForUseImpl | ( | TaskMonitor | monitor, |
ObjectRepository | repository | ||
) | [protected, 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.
Reimplemented in moa.streams.generators.WaveformGeneratorDrift.
Definition at line 77 of file WaveformGenerator.java.
void moa.streams.generators.WaveformGenerator.restart | ( | ) |
Restarts this stream.
It must be similar to starting a new stream from scratch.
Implements moa.streams.InstanceStream.
Definition at line 156 of file WaveformGenerator.java.
Referenced by moa.streams.generators.WaveformGenerator.prepareForUseImpl().
new FlagOption("addNoise", 'n', "Adds noise, for a total of 40 attributes.")
Definition at line 69 of file WaveformGenerator.java.
Referenced by moa.streams.generators.WaveformGeneratorDrift.nextInstance(), moa.streams.generators.WaveformGenerator.nextInstance(), moa.streams.generators.WaveformGeneratorDrift.prepareForUseImpl(), and moa.streams.generators.WaveformGenerator.prepareForUseImpl().
final int moa.streams.generators.WaveformGenerator.hFunctions[][] [static, protected] |
{ {0, 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, 0}, {0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0}}
Definition at line 60 of file WaveformGenerator.java.
Referenced by moa.streams.generators.WaveformGeneratorDrift.nextInstance(), and moa.streams.generators.WaveformGenerator.nextInstance().
Random moa.streams.generators.WaveformGenerator.instanceRandom [protected] |
Definition at line 74 of file WaveformGenerator.java.
Referenced by moa.streams.generators.WaveformGeneratorDrift.nextInstance(), moa.streams.generators.WaveformGenerator.nextInstance(), moa.streams.generators.WaveformGeneratorDrift.prepareForUseImpl(), and moa.streams.generators.WaveformGenerator.restart().
new IntOption( "instanceRandomSeed", 'i', "Seed for random generation of instances.", 1)
Definition at line 65 of file WaveformGenerator.java.
Referenced by moa.streams.generators.WaveformGenerator.restart().
final int moa.streams.generators.WaveformGenerator.NUM_BASE_ATTRIBUTES = 21 [static] |
Definition at line 56 of file WaveformGenerator.java.
Referenced by moa.streams.generators.WaveformGeneratorDrift.nextInstance(), moa.streams.generators.WaveformGenerator.nextInstance(), moa.streams.generators.WaveformGeneratorDrift.prepareForUseImpl(), and moa.streams.generators.WaveformGenerator.prepareForUseImpl().
final int moa.streams.generators.WaveformGenerator.NUM_CLASSES = 3 [static] |
Definition at line 54 of file WaveformGenerator.java.
Referenced by moa.streams.generators.WaveformGeneratorDrift.nextInstance(), moa.streams.generators.WaveformGenerator.nextInstance(), and moa.streams.generators.WaveformGenerator.prepareForUseImpl().
Definition at line 72 of file WaveformGenerator.java.
Referenced by moa.streams.generators.WaveformGenerator.getHeader(), and moa.streams.generators.WaveformGenerator.prepareForUseImpl().
final int moa.streams.generators.WaveformGenerator.TOTAL_ATTRIBUTES_INCLUDING_NOISE = 40 [static] |
Definition at line 58 of file WaveformGenerator.java.
Referenced by moa.streams.generators.WaveformGeneratorDrift.nextInstance(), moa.streams.generators.WaveformGenerator.nextInstance(), moa.streams.generators.WaveformGeneratorDrift.prepareForUseImpl(), and moa.streams.generators.WaveformGenerator.prepareForUseImpl().