public class WaveformGenerator extends AbstractOptionHandler implements InstanceStream
Modifier and Type | Field and Description |
---|---|
FlagOption |
addNoiseOption |
protected static int[][] |
hFunctions |
protected Random |
instanceRandom |
IntOption |
instanceRandomSeedOption |
static int |
NUM_BASE_ATTRIBUTES |
static int |
NUM_CLASSES |
protected InstancesHeader |
streamHeader |
static int |
TOTAL_ATTRIBUTES_INCLUDING_NOISE |
classOptionNamesToPreparedObjects, options
Constructor and Description |
---|
WaveformGenerator() |
Modifier and Type | Method and Description |
---|---|
long |
estimatedRemainingInstances()
Gets the estimated number of remaining instances in this stream
|
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
InstancesHeader |
getHeader()
Gets the header of this stream.
|
String |
getPurposeString()
Gets the purpose of this object
|
boolean |
hasMoreInstances()
Gets whether this stream has more instances to output.
|
boolean |
isRestartable()
Gets whether this stream can restart.
|
weka.core.Instance |
nextInstance()
Gets the next instance from this stream.
|
protected void |
prepareForUseImpl(TaskMonitor monitor,
ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.
|
void |
restart()
Restarts this stream.
|
copy, discoverOptionsViaReflection, getCLICreationString, getOptions, getPreparedClassOption, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, measureByteSize
public static final int NUM_CLASSES
public static final int NUM_BASE_ATTRIBUTES
public static final int TOTAL_ATTRIBUTES_INCLUDING_NOISE
protected static final int[][] hFunctions
public IntOption instanceRandomSeedOption
public FlagOption addNoiseOption
protected InstancesHeader streamHeader
protected Random instanceRandom
public String getPurposeString()
OptionHandler
getPurposeString
in interface OptionHandler
getPurposeString
in class AbstractOptionHandler
protected void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractOptionHandler
prepareForUseImpl
and not prepareForUse
since
prepareForUse
calls prepareForUseImpl
.prepareForUseImpl
in class AbstractOptionHandler
monitor
- the TaskMonitor to userepository
- the ObjectRepository to usepublic long estimatedRemainingInstances()
InstanceStream
estimatedRemainingInstances
in interface InstanceStream
public InstancesHeader getHeader()
InstanceStream
getHeader
in interface InstanceStream
public boolean hasMoreInstances()
InstanceStream
hasMoreInstances
in interface InstanceStream
public boolean isRestartable()
InstanceStream
isRestartable
in interface InstanceStream
public weka.core.Instance nextInstance()
InstanceStream
nextInstance
in interface InstanceStream
public void restart()
InstanceStream
restart
in interface InstanceStream
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.getDescription
in interface MOAObject
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.