Package weka.filters
Class SimpleFilter
java.lang.Object
weka.filters.Filter
weka.filters.SimpleFilter
- All Implemented Interfaces:
Serializable
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
- Direct Known Subclasses:
SimpleBatchFilter
,SimpleStreamFilter
This filter contains common behavior of the SimpleBatchFilter and the
SimpleStreamFilter.
- Version:
- $Revision: 1.4 $
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the tip text for this propertyboolean
getDebug()
Returns the current debugging mode state.String[]
Gets the current settings of the filter.abstract String
Returns a string describing this classifier.Returns an enumeration describing the available options.void
setDebug
(boolean value) Sets the debugging modeboolean
setInputFormat
(Instances instanceInfo) Sets the format of the input instances.void
setOptions
(String[] options) Parses a list of options for this object.Methods inherited from class weka.filters.Filter
batchFilterFile, batchFinished, filterFile, getCapabilities, getCapabilities, getOutputFormat, getRevision, input, isFirstBatchDone, isNewBatch, isOutputFormatDefined, main, makeCopies, makeCopy, numPendingOutput, output, outputPeek, toString, useFilter, wekaStaticWrapper
-
Constructor Details
-
SimpleFilter
public SimpleFilter()
-
-
Method Details
-
globalInfo
Returns a string describing this classifier.- Returns:
- a description of the classifier suitable for displaying in the explorer/experimenter gui
-
listOptions
Returns an enumeration describing the available options.- Specified by:
listOptions
in interfaceOptionHandler
- Returns:
- an enumeration of all the available options.
-
setOptions
Parses a list of options for this object. Also resets the state of the filter (this reset doesn't affect the options).- Specified by:
setOptions
in interfaceOptionHandler
- Parameters:
options
- the list of options as an array of strings- Throws:
Exception
- if an option is not supported- See Also:
-
reset()
-
getOptions
Gets the current settings of the filter.- Specified by:
getOptions
in interfaceOptionHandler
- Returns:
- an array of strings suitable for passing to setOptions
-
setDebug
public void setDebug(boolean value) Sets the debugging mode- Parameters:
value
- if true, debugging information is output
-
getDebug
public boolean getDebug()Returns the current debugging mode state.- Returns:
- true if debugging mode is on
-
debugTipText
Returns the tip text for this property- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setInputFormat
Sets the format of the input instances. Also resets the state of the filter (this reset doesn't affect the options).- Overrides:
setInputFormat
in classFilter
- Parameters:
instanceInfo
- an Instances object containing the input instance structure (any instances contained in the object are ignored - only the structure is required).- Returns:
- true if the outputFormat may be collected immediately
- Throws:
Exception
- if the inputFormat can't be set successfully- See Also:
-
reset()
-