public class MergeInfrequentNominalValues extends SimpleBatchFilter implements UnsupervisedFilter
-D Turns on output of debugging information.
-N <int> The minimum frequency for a value to remain (default: 2).
-R <range> Sets list of attributes to act on (or its inverse). 'first and 'last' are accepted as well.' E.g.: first-5,7,9,20-last (default: 1,2)
-V Invert matching sense (i.e. act on all attributes not specified in list)
| Constructor and Description |
|---|
MergeInfrequentNominalValues() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowAccessToFullInputFormat()
We need access to the full input data in determineOutputFormat.
|
String |
attributeIndicesTipText()
Returns the tip text for this property
|
String |
getAttributeIndices()
Get the current range selection.
|
Capabilities |
getCapabilities()
Returns the Capabilities of this filter.
|
boolean |
getInvertSelection()
Get whether the supplied attributes are to be acted on or all other attributes.
|
int |
getMinimumFrequency()
Gets the minimum frequency.
|
String[] |
getOptions()
Gets the current settings of the filter.
|
String |
getRevision()
Returns the revision string.
|
String |
globalInfo()
Returns a string describing this filter.
|
String |
invertSelectionTipText()
Returns the tip text for this property
|
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(String[] args)
runs the filter with the given arguments
|
String |
minimumFrequencyTipText()
Returns the tip text for this property
|
void |
setAttributeIndices(String rangeList)
Set which attributes are to be acted on (or not, if invert is true)
|
void |
setAttributeIndicesArray(int[] attributes)
Set which attributes are to be acted on (or not, if invert is true)
|
void |
setInvertSelection(boolean invert)
Set whether selected attributes should be acted on or all other attributes.
|
void |
setMinimumFrequency(int minF)
Sets the minimum frequency.
|
void |
setOptions(String[] options)
Parses a given list of options.
|
batchFinished, inputdebugTipText, getDebug, setDebug, setInputFormatbatchFilterFile, filterFile, getCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputPeek, runFilter, toString, useFilter, wekaStaticWrapperpublic String globalInfo()
globalInfo in class SimpleFilterpublic Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class SimpleFilterpublic String[] getOptions()
getOptions in interface OptionHandlergetOptions in class SimpleFilterpublic void setOptions(String[] options) throws Exception
-D Turns on output of debugging information.
-N <int> The minimum frequency for a value to remain (default: 2).
-R <range> Sets list of attributes to act on (or its inverse). 'first and 'last' are accepted as well.' E.g.: first-5,7,9,20-last (default: 1,2)
-V Invert matching sense (i.e. act on all attributes not specified in list)
setOptions in interface OptionHandlersetOptions in class SimpleFilteroptions - the list of options as an array of stringsException - if an option is not supportedSimpleFilter.reset()public String minimumFrequencyTipText()
public int getMinimumFrequency()
public void setMinimumFrequency(int minF)
the - minimum frequency as an integer.public String attributeIndicesTipText()
public String getAttributeIndices()
public void setAttributeIndices(String rangeList)
rangeList - a string representing the list of attributes. Since
the string will typically come from a user, attributes are indexed from
1. public void setAttributeIndicesArray(int[] attributes)
attributes - an array containing indexes of attributes to select.
Since the array will typically come from a program, attributes are indexed
from 0.public String invertSelectionTipText()
public boolean getInvertSelection()
public void setInvertSelection(boolean invert)
invert - the new invert settingpublic boolean allowAccessToFullInputFormat()
allowAccessToFullInputFormat in class SimpleBatchFilterpublic Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class FilterCapabilitiespublic String getRevision()
getRevision in interface RevisionHandlergetRevision in class Filterpublic static void main(String[] args)
args - the commandline argumentsCopyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.