Configurable
, java.io.Serializable
, CapabilitiesHandler
, MOAObject
, OptionHandler
, ExampleStream
, StreamFilter
public class AddNoiseFilter extends AbstractStreamFilter
Modifier and Type | Field | Description |
---|---|---|
FloatOption |
attNoiseFractionOption |
|
protected AutoExpandVector<java.lang.Object> |
attValObservers |
|
FloatOption |
classNoiseFractionOption |
|
protected java.util.Random |
random |
|
IntOption |
randomSeedOption |
config
inputStream
Constructor | Description |
---|---|
AddNoiseFilter() |
Modifier and Type | Method | Description |
---|---|---|
Instance |
filterInstance(Instance inst) |
|
void |
getDescription(java.lang.StringBuilder sb,
int indent) |
Returns a string representation of this object.
|
InstancesHeader |
getHeader() |
Gets the header of this stream.
|
java.lang.String |
getPurposeString() |
Dictionary with option texts and objects
|
protected void |
restartImpl() |
Restarts this filter.
|
copy, measureByteSize, measureByteSize, toString
copy, getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
estimatedRemainingInstances, hasMoreInstances, isRestartable, nextInstance, prepareForUseImpl, restart, setInputStream
getCapabilities
defineImmutableCapabilities
copy, measureByteSize
public IntOption randomSeedOption
public FloatOption attNoiseFractionOption
public FloatOption classNoiseFractionOption
protected java.util.Random random
protected AutoExpandVector<java.lang.Object> attValObservers
public java.lang.String getPurposeString()
AbstractOptionHandler
getPurposeString
in interface OptionHandler
getPurposeString
in class AbstractOptionHandler
protected void restartImpl()
AbstractStreamFilter
AbstractStreamFilter
must implement restartImpl
.
restart
uses restartImpl
in AbstractStreamFilter
.restartImpl
in class AbstractStreamFilter
public InstancesHeader getHeader()
ExampleStream
public Instance filterInstance(Instance inst)
filterInstance
in interface StreamFilter
filterInstance
in class AbstractStreamFilter
public void getDescription(java.lang.StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentCopyright © 2020 University of Waikato, Hamilton, NZ. All Rights Reserved.