public class AddNoiseFilter extends AbstractStreamFilter
Modifier and Type | Field and Description |
---|---|
FloatOption |
attNoiseFractionOption |
protected AutoExpandVector<Object> |
attValObservers |
FloatOption |
classNoiseFractionOption |
protected Random |
random |
IntOption |
randomSeedOption |
inputStream
config
Constructor and Description |
---|
AddNoiseFilter() |
Modifier and Type | Method and Description |
---|---|
Instance |
filterInstance(Instance inst) |
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
InstancesHeader |
getHeader()
Gets the header of this stream.
|
String |
getPurposeString()
Dictionary with option texts and objects
|
protected void |
restartImpl()
Restarts this filter.
|
estimatedRemainingInstances, hasMoreInstances, isRestartable, nextInstance, prepareForUseImpl, restart, setInputStream
copy, getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, measureByteSize
public IntOption randomSeedOption
public FloatOption attNoiseFractionOption
public FloatOption classNoiseFractionOption
protected Random random
protected AutoExpandVector<Object> attValObservers
public 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(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 © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.