public class PartitionedMultiFilter extends SimpleBatchFilter implements WeightedInstancesHandler, WeightedAttributesHandler
-D Turns on output of debugging information.
-F <classname [options]> A filter to apply (can be specified multiple times).
-R <range> An attribute range (can be specified multiple times). For each filter a range must be supplied. 'first' and 'last' are valid indices. 'inv(...)' around the range denotes an inverted range.
-U Flag for leaving unused attributes out of the output, by default these are included in the filter output.
StreamableFilter
,
Serialized FormConstructor and Description |
---|
PartitionedMultiFilter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
filtersTipText()
Returns the tip text for this property.
|
Filter |
getFilter(int index)
Gets a single filter from the set of available filters.
|
Filter[] |
getFilters()
Gets the list of possible filters to choose from.
|
java.lang.String[] |
getOptions()
Gets the current settings of the filter.
|
Range |
getRange(int index)
Gets a single Range from the set of available Ranges.
|
Range[] |
getRanges()
Gets the list of possible Ranges to choose from.
|
boolean |
getRemoveUnused()
Gets whether unused attributes (ones that are not covered by any of the
ranges) are removed from the output.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
globalInfo()
Returns a string describing this filter.
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(java.lang.String[] args)
Main method for executing this class.
|
java.lang.String |
rangesTipText()
Returns the tip text for this property.
|
java.lang.String |
removeUnusedTipText()
Returns the tip text for this property.
|
void |
setFilters(Filter[] filters)
Sets the list of possible filters to choose from.
|
void |
setOptions(java.lang.String[] options)
Parses a list of options for this object.
|
void |
setRanges(Range[] Ranges)
Sets the list of possible Ranges to choose from.
|
void |
setRemoveUnused(boolean value)
Sets whether unused attributes (ones that are not covered by any of the
ranges) are removed from the output.
|
allowAccessToFullInputFormat, batchFinished, input, input
setInputFormat
batchFilterFile, debugTipText, doNotCheckCapabilitiesTipText, filterFile, getCapabilities, getCapabilities, getCopyOfInputFormat, getDebug, getDoNotCheckCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputPeek, postExecution, preExecution, run, runFilter, setDebug, setDoNotCheckCapabilities, toString, useFilter, wekaStaticWrapper
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
makeCopy
public java.lang.String globalInfo()
globalInfo
in class SimpleFilter
public java.util.Enumeration<Option> listOptions()
listOptions
in interface OptionHandler
listOptions
in class Filter
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-D Turns on output of debugging information.
-F <classname [options]> A filter to apply (can be specified multiple times).
-R <range> An attribute range (can be specified multiple times). For each filter a range must be supplied. 'first' and 'last' are valid indices. 'inv(...)' around the range denotes an inverted range.
-U Flag for leaving unused attributes out of the output, by default these are included in the filter output.
setOptions
in interface OptionHandler
setOptions
in class Filter
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class Filter
public void setRemoveUnused(boolean value)
value
- if true then the unused attributes get removedpublic boolean getRemoveUnused()
public java.lang.String removeUnusedTipText()
public void setFilters(Filter[] filters)
filters
- an array of filters with all options set.SimpleFilter.reset()
public Filter[] getFilters()
public java.lang.String filtersTipText()
public Filter getFilter(int index)
index
- the index of the filter wantedpublic void setRanges(Range[] Ranges)
Ranges
- an array of Ranges with all options set.SimpleFilter.reset()
public Range[] getRanges()
public java.lang.String rangesTipText()
public Range getRange(int index)
index
- the index of the Range wantedpublic java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class Filter
public static void main(java.lang.String[] args)
args
- should contain arguments for the filter: use -h for help