程序包 weka.filters
类 MultiFilter
java.lang.Object
weka.filters.Filter
weka.filters.SimpleFilter
weka.filters.SimpleStreamFilter
weka.filters.MultiFilter
Applies several filters successively. In case all supplied filters are StreamableFilters, it will act as a streamable one, too.
Valid options are:
-D Turns on output of debugging information.
-F <classname [options]> A filter to apply (can be specified multiple times).
- 版本:
- $Revision: 9718 $
- 作者:
- FracPete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
Signify that this batch of input to the filter is finished.Returns the tip text for this propertyReturns the Capabilities of this filter.getFilter
(int index) Gets a single filter from the set of available filters.Filter[]
Gets the list of possible filters to choose from.String[]
Gets the current settings of the filter.Returns the revision string.Returns a string describing this filterboolean
tests whether all the enclosed filters are streamableReturns an enumeration describing the available options.static void
Main method for executing this class.void
setFilters
(Filter[] filters) Sets the list of possible filters to choose from.void
setOptions
(String[] options) Parses a list of options for this object.从类继承的方法 weka.filters.SimpleStreamFilter
input
从类继承的方法 weka.filters.SimpleFilter
debugTipText, getDebug, setDebug, setInputFormat
从类继承的方法 weka.filters.Filter
batchFilterFile, filterFile, getCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, numPendingOutput, output, outputPeek, toString, useFilter, wekaStaticWrapper
-
构造器详细资料
-
MultiFilter
public MultiFilter()
-
-
方法详细资料
-
globalInfo
Returns a string describing this filter- 指定者:
globalInfo
在类中SimpleFilter
- 返回:
- a description of the filter suitable for displaying in the explorer/experimenter gui
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中SimpleFilter
- 返回:
- an enumeration of all the available options.
-
setOptions
Parses a list of options for this object. Valid options are:-D Turns on output of debugging information.
-F <classname [options]> A filter to apply (can be specified multiple times).
- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中SimpleFilter
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported- 另请参阅:
-
SimpleFilter.reset()
-
getOptions
Gets the current settings of the filter.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中SimpleFilter
- 返回:
- an array of strings suitable for passing to setOptions
-
getCapabilities
Returns the Capabilities of this filter.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中Filter
- 返回:
- the capabilities of this object
- 另请参阅:
-
setFilters
Sets the list of possible filters to choose from. Also resets the state of the filter (this reset doesn't affect the options).- 参数:
filters
- an array of filters with all options set.- 另请参阅:
-
reset()
-
getFilters
Gets the list of possible filters to choose from.- 返回:
- the array of Filters
-
filtersTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getFilter
Gets a single filter from the set of available filters.- 参数:
index
- the index of the filter wanted- 返回:
- the Filter
-
isStreamableFilter
public boolean isStreamableFilter()tests whether all the enclosed filters are streamable- 返回:
- true if all the enclosed filters are streamable
-
batchFinished
Signify that this batch of input to the filter is finished. If the filter requires all instances prior to filtering, output() may now be called to retrieve the filtered instances. Any subsequent instances filtered should be filtered based on setting obtained from the first batch (unless the setInputFormat has been re-assigned or new options have been set).- 覆盖:
batchFinished
在类中SimpleStreamFilter
- 返回:
- true if there are instances pending output
- 抛出:
IllegalStateException
- if no input format has been set.NullPointerException
- if no input structure has been defined,Exception
- if there was a problem finishing the batch.
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中Filter
- 返回:
- the revision
-
main
Main method for executing this class.- 参数:
args
- should contain arguments for the filter: use -h for help
-