public class FileStream extends ClusteringStream
| Modifier and Type | Field and Description |
|---|---|
FileOption |
arffFileOption |
IntOption |
classIndexOption |
protected InputStreamProgressMonitor |
fileProgressMonitor |
protected Reader |
fileReader |
protected boolean |
hitEndOfFile |
protected weka.core.Instances |
instances |
FlagOption |
keepNonNumericalAttrOption |
protected weka.core.Instance |
lastInstanceRead |
FlagOption |
normalizeOption |
protected int |
numInstancesRead |
ListOption |
removeAttributesOption |
decayHorizonOption, decayThresholdOption, evaluationFrequencyOption, numAttsOptionclassOptionNamesToPreparedObjects, options| Constructor and Description |
|---|
FileStream() |
| 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.
|
void |
prepareForUseImpl(TaskMonitor monitor,
ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.
|
protected ArrayList<Double[]> |
readMinMaxDiffValues(HashSet<Integer> ignoredAttributes) |
protected boolean |
readNextInstanceFromFile() |
void |
restart()
Restarts this stream.
|
getDecayHorizon, getDecayThreshold, getEvaluationFrequencycopy, discoverOptionsViaReflection, getCLICreationString, getOptions, getPreparedClassOption, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUsecopy, measureByteSize, measureByteSize, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopy, measureByteSizepublic FileOption arffFileOption
public IntOption classIndexOption
public FlagOption normalizeOption
public ListOption removeAttributesOption
public FlagOption keepNonNumericalAttrOption
protected weka.core.Instances instances
protected Reader fileReader
protected boolean hitEndOfFile
protected weka.core.Instance lastInstanceRead
protected int numInstancesRead
protected InputStreamProgressMonitor fileProgressMonitor
public String getPurposeString()
OptionHandlergetPurposeString in interface OptionHandlergetPurposeString in class AbstractOptionHandlerpublic 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 InstancesHeader getHeader()
InstanceStreampublic long estimatedRemainingInstances()
InstanceStreampublic boolean hasMoreInstances()
InstanceStreampublic weka.core.Instance nextInstance()
InstanceStreampublic boolean isRestartable()
InstanceStreampublic void restart()
InstanceStreamprotected boolean readNextInstanceFromFile()
protected ArrayList<Double[]> readMinMaxDiffValues(HashSet<Integer> ignoredAttributes)
ignoredAttributes - Attributes that will be ignoredpublic void getDescription(StringBuilder sb, int indent)
MOAObjectAbstractMOAObject.toString
to give a string representation of the object.sb - the stringbuilder to add the descriptionindent - the number of characters to indentCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.