public class MergeNominalValues extends SimpleBatchFilter implements SupervisedFilter, WeightedInstancesHandler, WeightedAttributesHandler, TechnicalInformationHandler
-D Turns on output of debugging information.
-L <double> The significance level (default: 0.05).
-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: first-last)
-V Invert matching sense (i.e. act on all attributes not specified in list)
-O Use short identifiers for merged subsets.
| Constructor and Description |
|---|
MergeNominalValues() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowAccessToFullInputFormat()
We need access to the full input data in determineOutputFormat.
|
java.lang.String |
attributeIndicesTipText()
Returns the tip text for this property
|
java.lang.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.
|
java.lang.String[] |
getOptions()
Gets the current settings of the filter.
|
java.lang.String |
getRevision()
Returns the revision string.
|
double |
getSignificanceLevel()
Gets the significance level.
|
TechnicalInformation |
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed
information about the technical background of this class, e.g., paper
reference or book this class is based on.
|
boolean |
getUseShortIdentifiers()
Get whether short identifiers are to be output.
|
java.lang.String |
globalInfo()
Returns a string describing this filter.
|
java.lang.String |
invertSelectionTipText()
Returns the tip text for this property
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(java.lang.String[] args)
runs the filter with the given arguments
|
void |
setAttributeIndices(java.lang.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 |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setSignificanceLevel(double sF)
Sets the significance level.
|
void |
setUseShortIdentifiers(boolean b)
Set whether to output short identifiers for merged values.
|
java.lang.String |
significanceLevelTipText()
Returns the tip text for this property
|
java.lang.String |
useShortIdentifiersTipText()
Returns the tip text for this property
|
batchFinished, input, inputsetInputFormatbatchFilterFile, debugTipText, doNotCheckCapabilitiesTipText, filterFile, getCapabilities, getCopyOfInputFormat, getDebug, getDoNotCheckCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputPeek, postExecution, preExecution, run, runFilter, setDebug, setDoNotCheckCapabilities, toString, useFilter, wekaStaticWrapperequals, getClass, hashCode, notify, notifyAll, wait, wait, waitmakeCopypublic java.lang.String globalInfo()
globalInfo in class SimpleFilterpublic TechnicalInformation getTechnicalInformation()
getTechnicalInformation in interface TechnicalInformationHandlerpublic java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class Filterpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class Filterpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
-D Turns on output of debugging information.
-L <double> The significance level (default: 0.05).
-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: first-last)
-V Invert matching sense (i.e. act on all attributes not specified in list)
-O Use short identifiers for merged subsets.
setOptions in interface OptionHandlersetOptions in class Filteroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String significanceLevelTipText()
public double getSignificanceLevel()
public void setSignificanceLevel(double sF)
sF - the significance level as a double.public java.lang.String attributeIndicesTipText()
public java.lang.String getAttributeIndices()
public void setAttributeIndices(java.lang.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 java.lang.String invertSelectionTipText()
public boolean getInvertSelection()
public void setInvertSelection(boolean invert)
invert - the new invert settingpublic java.lang.String useShortIdentifiersTipText()
public boolean getUseShortIdentifiers()
public void setUseShortIdentifiers(boolean b)
b - if true, short IDs are outputpublic boolean allowAccessToFullInputFormat()
allowAccessToFullInputFormat in class SimpleBatchFilterpublic Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class FilterCapabilitiespublic java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class Filterpublic static void main(java.lang.String[] args)
args - the commandline arguments