public class MergeManyValues extends PotentialClassIgnorer implements UnsupervisedFilter, StreamableFilter, OptionHandler
-C <col> Sets the attribute index (default: last)
-L <label> Sets the label of the newly merged classes (default: 'merged')
-R <range> Sets the merge range. 'first and 'last' are accepted as well.' E.g.: first-5,7,9,20-last (default: 1,2)
| Constructor and Description |
|---|
MergeManyValues() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
attributeIndexTipText()
Returns the tip text for this property.
|
java.lang.String |
getAttributeIndex()
Get the index of the attribute used.
|
Capabilities |
getCapabilities()
Returns the Capabilities of this filter.
|
java.lang.String |
getLabel()
Get the label for the new merged class.
|
java.lang.String |
getMergeValueRange()
Get the range of the merge values used.
|
java.lang.String[] |
getOptions()
Gets the current settings of the filter.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
globalInfo()
Returns a string describing this filter
|
boolean |
input(Instance instance)
Input an instance for filtering.
|
java.lang.String |
labelTipText()
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)
Main method for executing this filter.
|
java.lang.String |
mergeValueRangeTipText()
Returns the tip text for this property.
|
void |
setAttributeIndex(java.lang.String attIndex)
Sets index of the attribute used.
|
boolean |
setInputFormat(Instances instanceInfo)
Sets the format of the input instances.
|
void |
setLabel(java.lang.String alabel)
Sets label of the merged class.
|
void |
setMergeValueRange(java.lang.String range)
Sets range of the merge values used.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
getIgnoreClass, getOutputFormat, ignoreClassTipText, setIgnoreClassbatchFilterFile, batchFinished, debugTipText, doNotCheckCapabilitiesTipText, filterFile, getCapabilities, getDebug, getDoNotCheckCapabilities, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputPeek, postExecution, preExecution, run, runFilter, setDebug, setDoNotCheckCapabilities, toString, useFilter, wekaStaticWrapperpublic java.lang.String globalInfo()
public java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class PotentialClassIgnorerpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
-C <col> Sets the attribute index (default: last)
-L <label> Sets the label of the newly merged classes (default: 'merged')
-R <range> Sets the merge range. 'first and 'last' are accepted as well.' E.g.: first-5,7,9,20-last (default: 1,2)
setOptions in interface OptionHandlersetOptions in class PotentialClassIgnoreroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class PotentialClassIgnorerpublic Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class FilterCapabilitiespublic boolean setInputFormat(Instances instanceInfo) throws java.lang.Exception
setInputFormat in class PotentialClassIgnorerinstanceInfo - an Instances object containing the input instance
structure (any instances contained in the object are ignored -
only the structure is required).java.lang.Exception - if the input format can't be set successfullypublic boolean input(Instance instance)
public java.lang.String attributeIndexTipText()
public java.lang.String getAttributeIndex()
public void setAttributeIndex(java.lang.String attIndex)
attIndex - the index of the attributepublic java.lang.String labelTipText()
public java.lang.String getLabel()
public void setLabel(java.lang.String alabel)
alabel - the new label.public java.lang.String getMergeValueRange()
public java.lang.String mergeValueRangeTipText()
public void setMergeValueRange(java.lang.String range)
range - the range of the merged valuespublic java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class Filterpublic static void main(java.lang.String[] args)
args - use -h to display all options