MOA 12.03
Real Time Analytics for Data Streams
moa.streams.filters.AddNoiseFilter Class Reference

Filter for adding random noise to examples in a stream. More...

Inheritance diagram for moa.streams.filters.AddNoiseFilter:
Collaboration diagram for moa.streams.filters.AddNoiseFilter:

List of all members.

Public Member Functions

String getPurposeString ()
 Gets the purpose of this object.
InstancesHeader getHeader ()
 Gets the header of 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 randomSeedOption
FloatOption attNoiseFractionOption
FloatOption classNoiseFractionOption

Protected Member Functions

void restartImpl ()
 Restarts this filter.

Protected Attributes

Random random
AutoExpandVector< Object > attValObservers

Detailed Description

Filter for adding random noise to examples in a stream.

Noise can be added to attribute values or to class labels.

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

Definition at line 39 of file AddNoiseFilter.java.


Member Function Documentation

void moa.streams.filters.AddNoiseFilter.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 110 of file AddNoiseFilter.java.

InstancesHeader moa.streams.filters.AddNoiseFilter.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 68 of file AddNoiseFilter.java.

Here is the call graph for this function:

String moa.streams.filters.AddNoiseFilter.getPurposeString ( )

Gets the purpose of this object.

Returns:
the string with the purpose of this object

Reimplemented from moa.options.AbstractOptionHandler.

Definition at line 42 of file AddNoiseFilter.java.

Instance moa.streams.filters.AddNoiseFilter.nextInstance ( )

Gets the next instance from this stream.

Returns:
the next instance of this stream

Implements moa.streams.InstanceStream.

Definition at line 73 of file AddNoiseFilter.java.

Here is the call graph for this function:

void moa.streams.filters.AddNoiseFilter.restartImpl ( ) [protected, virtual]

Restarts this filter.

All instances that extends from AbstractStreamFilter must implement restartImpl. restart uses restartImpl in AbstractStreamFilter.

Implements moa.streams.filters.AbstractStreamFilter.

Definition at line 62 of file AddNoiseFilter.java.

Here is the call graph for this function:


Member Data Documentation

Initial value:
 new FloatOption("attNoise",
            'a', "The fraction of attribute values to disturb.", 0.1, 0.0, 1.0)

Definition at line 51 of file AddNoiseFilter.java.

Referenced by moa.streams.filters.AddNoiseFilter.nextInstance().

Initial value:
 new FloatOption("classNoise",
            'c', "The fraction of class labels to disturb.", 0.1, 0.0, 1.0)

Definition at line 54 of file AddNoiseFilter.java.

Referenced by moa.streams.filters.AddNoiseFilter.nextInstance().

Initial value:
 new IntOption("randomSeed", 'r',
            "Seed for random noise.", 1)

Definition at line 48 of file AddNoiseFilter.java.

Referenced by moa.streams.filters.AddNoiseFilter.restartImpl().


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