public abstract class AbstractConceptDriftGenerator extends AbstractOptionHandler implements ConceptDriftGenerator
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
change |
protected ArrayList<ClusterEvent> |
clusterEvents |
protected Random |
instanceRandom |
IntOption |
instanceRandomSeedOption |
FlagOption |
notBinaryStreamOption |
protected int |
numInstances |
IntOption |
numInstancesConceptOption |
protected int |
period |
protected InstancesHeader |
streamHeader |
classOptionNamesToPreparedObjects, options| Constructor and Description |
|---|
AbstractConceptDriftGenerator() |
| Modifier and Type | Method and Description |
|---|---|
long |
estimatedRemainingInstances()
Gets the estimated number of remaining instances in this stream
|
boolean |
getChange() |
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
ArrayList<ClusterEvent> |
getEventsList() |
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 abstract double |
nextValue() |
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, prepareForUsecopy, measureByteSize, measureByteSize, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopy, measureByteSizeprotected ArrayList<ClusterEvent> clusterEvents
public IntOption instanceRandomSeedOption
public FlagOption notBinaryStreamOption
public IntOption numInstancesConceptOption
protected InstancesHeader streamHeader
protected Random instanceRandom
protected int period
protected int numInstances
protected boolean change
public String getPurposeString()
OptionHandlergetPurposeString in interface OptionHandlergetPurposeString in class AbstractOptionHandlerpublic ArrayList<ClusterEvent> getEventsList()
getEventsList in interface ConceptDriftGeneratorprotected void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractOptionHandlerprepareForUseImpl
and not prepareForUse since
prepareForUse calls prepareForUseImpl.prepareForUseImpl in class AbstractOptionHandlermonitor - the TaskMonitor to userepository - the ObjectRepository to usepublic long estimatedRemainingInstances()
InstanceStreamestimatedRemainingInstances in interface InstanceStreampublic InstancesHeader getHeader()
InstanceStreamgetHeader in interface InstanceStreampublic boolean hasMoreInstances()
InstanceStreamhasMoreInstances in interface InstanceStreampublic boolean isRestartable()
InstanceStreamisRestartable in interface InstanceStreamprotected abstract double nextValue()
public boolean getChange()
public weka.core.Instance nextInstance()
InstanceStreamnextInstance in interface InstanceStreampublic void restart()
InstanceStreamrestart in interface InstanceStreampublic void getDescription(StringBuilder sb, int indent)
MOAObjectAbstractMOAObject.toString
to give a string representation of the object.getDescription in interface MOAObjectsb - the stringbuilder to add the descriptionindent - the number of characters to indentCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.