Package moa.streams.clustering
Class RandomRBFGeneratorEvents
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.streams.clustering.ClusteringStream
-
- moa.streams.clustering.RandomRBFGeneratorEvents
-
- All Implemented Interfaces:
Configurable
,Serializable
,CapabilitiesHandler
,MOAObject
,OptionHandler
,ExampleStream<Example<Instance>>
,InstanceStream
public class RandomRBFGeneratorEvents extends ClusteringStream
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class moa.streams.clustering.ClusteringStream
decayHorizonOption, decayThresholdOption, evaluationFrequencyOption, numAttsOption
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description RandomRBFGeneratorEvents()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addClusterChangeListener(ClusterEventListener l)
Add a listenerlong
estimatedRemainingInstances()
Gets the estimated number of remaining instances in this streamprotected void
fireClusterChange(long timestamp, String type, String message)
Fire a ClusterChangeEvent to all registered listenersprotected void
generateHeader()
void
getDescription(StringBuilder sb, int indent)
TOOLSClustering
getGeneratingClusters()
InstancesHeader
getHeader()
Gets the header of this stream.Clustering
getMicroClustering()
String
getParameterString()
String
getPurposeString()
Dictionary with option texts and objectsboolean
hasMoreInstances()
Gets whether this stream has more instances to output.protected void
initKernels()
boolean
isRestartable()
Gets whether this stream can restart.InstanceExample
nextInstance()
Gets the next example from this stream.void
prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.void
removeClusterChangeListener(ClusterEventListener l)
Remove a listenervoid
restart()
Restarts this stream.-
Methods inherited from class moa.streams.clustering.ClusteringStream
getDecayHorizon, getDecayThreshold, getEvaluationFrequency
-
Methods inherited from class moa.options.AbstractOptionHandler
copy, getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
-
Methods inherited from class moa.AbstractMOAObject
copy, measureByteSize, measureByteSize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface moa.capabilities.CapabilitiesHandler
getCapabilities
-
Methods inherited from interface moa.streams.ExampleStream
defineImmutableCapabilities
-
Methods inherited from interface moa.MOAObject
measureByteSize
-
-
-
-
Field Detail
-
modelRandomSeedOption
public IntOption modelRandomSeedOption
-
instanceRandomSeedOption
public IntOption instanceRandomSeedOption
-
numClusterOption
public IntOption numClusterOption
-
numClusterRangeOption
public IntOption numClusterRangeOption
-
kernelRadiiOption
public FloatOption kernelRadiiOption
-
kernelRadiiRangeOption
public FloatOption kernelRadiiRangeOption
-
densityRangeOption
public FloatOption densityRangeOption
-
speedOption
public IntOption speedOption
-
speedRangeOption
public IntOption speedRangeOption
-
noiseLevelOption
public FloatOption noiseLevelOption
-
noiseInClusterOption
public FlagOption noiseInClusterOption
-
eventFrequencyOption
public IntOption eventFrequencyOption
-
eventMergeSplitOption
public FlagOption eventMergeSplitOption
-
eventDeleteCreateOption
public FlagOption eventDeleteCreateOption
-
instanceRandom
protected Random instanceRandom
-
streamHeader
protected InstancesHeader streamHeader
-
-
Method Detail
-
getHeader
public InstancesHeader getHeader()
Description copied from interface:ExampleStream
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
-
estimatedRemainingInstances
public long estimatedRemainingInstances()
Description copied from interface:ExampleStream
Gets the estimated number of remaining instances in this stream- Returns:
- the estimated number of instances to get from this stream
-
hasMoreInstances
public boolean hasMoreInstances()
Description copied from interface:ExampleStream
Gets whether this stream has more instances to output. This is useful when reading streams from files.- Returns:
- true if this stream has more instances to output
-
isRestartable
public boolean isRestartable()
Description copied from interface:ExampleStream
Gets whether this stream can restart.- Returns:
- true if this stream can restart
-
prepareForUseImpl
public void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
Description copied from class:AbstractOptionHandler
This method describes the implementation of how to prepare this object for use. All classes that extends this class have to implementprepareForUseImpl
and notprepareForUse
sinceprepareForUse
callsprepareForUseImpl
.- Specified by:
prepareForUseImpl
in classAbstractOptionHandler
- Parameters:
monitor
- the TaskMonitor to userepository
- the ObjectRepository to use
-
restart
public void restart()
Description copied from interface:ExampleStream
Restarts this stream. It must be similar to starting a new stream from scratch.
-
generateHeader
protected void generateHeader()
-
initKernels
protected void initKernels()
-
nextInstance
public InstanceExample nextInstance()
Description copied from interface:ExampleStream
Gets the next example from this stream.- Returns:
- the next example of this stream
-
getGeneratingClusters
public Clustering getGeneratingClusters()
-
getMicroClustering
public Clustering getMicroClustering()
-
getDescription
public void getDescription(StringBuilder sb, int indent)
TOOLS- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
addClusterChangeListener
public void addClusterChangeListener(ClusterEventListener l)
Add a listener
-
removeClusterChangeListener
public void removeClusterChangeListener(ClusterEventListener l)
Remove a listener
-
fireClusterChange
protected void fireClusterChange(long timestamp, String type, String message)
Fire a ClusterChangeEvent to all registered listeners
-
getPurposeString
public String getPurposeString()
Description copied from class:AbstractOptionHandler
Dictionary with option texts and objects- Specified by:
getPurposeString
in interfaceOptionHandler
- Overrides:
getPurposeString
in classAbstractOptionHandler
- Returns:
- the string with the purpose of this object
-
getParameterString
public String getParameterString()
-
-