public class RemoveDuplicates extends SimpleBatchFilter implements WeightedAttributesHandler, WeightedInstancesHandler
-D Turns on output of debugging information.
m_Debug, m_DoNotCheckCapabilities, m_FirstBatchDone, m_InputRelAtts, m_InputStringAtts, m_NewBatch, m_OutputRelAtts, m_OutputStringAtts| Constructor and Description |
|---|
RemoveDuplicates() |
| Modifier and Type | Method and Description |
|---|---|
protected Instances |
determineOutputFormat(Instances inputFormat)
Determines the output format based on the input format and returns
this.
|
Capabilities |
getCapabilities()
Returns the Capabilities of this filter.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
globalInfo()
Returns a string describing this filter.
|
protected boolean |
hasImmediateOutputFormat()
returns true if the output format is immediately available after the
input format has been set and not only after all the data has been
seen (see batchFinished())
|
boolean |
input(Instance instance)
Input an instance for filtering.
|
static void |
main(java.lang.String[] args)
Main method for running this filter.
|
protected Instances |
process(Instances instances)
Processes the given data (may change the provided dataset) and returns
the modified version.
|
allowAccessToFullInputFormat, batchFinishedreset, setInputFormatbatchFilterFile, bufferInput, copyValues, copyValues, debugTipText, doNotCheckCapabilitiesTipText, filterFile, flushInput, getCapabilities, getCopyOfInputFormat, getDebug, getDoNotCheckCapabilities, getInputFormat, getOptions, getOutputFormat, initInputLocators, initOutputLocators, inputFormatPeek, isFirstBatchDone, isNewBatch, isOutputFormatDefined, listOptions, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputFormatPeek, outputPeek, postExecution, preExecution, push, push, resetQueue, run, runFilter, setDebug, setDoNotCheckCapabilities, setOptions, setOutputFormat, testInputFormat, toString, useFilter, wekaStaticWrapperpublic java.lang.String globalInfo()
globalInfo in class SimpleFilterpublic boolean input(Instance instance) throws java.lang.Exception
input in class SimpleBatchFilterinstance - the input instancejava.lang.IllegalStateException - if no input structure has been definedjava.lang.Exception - if something goes wrongSimpleBatchFilter.batchFinished()public Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class FilterCapabilitiesprotected Instances determineOutputFormat(Instances inputFormat) throws java.lang.Exception
determineOutputFormat in class SimpleFilterinputFormat - the input format to base the output format onjava.lang.Exception - in case the determination goes wrongSimpleFilter.hasImmediateOutputFormat(),
Filter.batchFinished()protected boolean hasImmediateOutputFormat()
hasImmediateOutputFormat in class SimpleBatchFilterSimpleBatchFilter.batchFinished(),
SimpleFilter.setInputFormat(Instances)protected Instances process(Instances instances) throws java.lang.Exception
process in class SimpleFilterinstances - the data to processjava.lang.Exception - in case the processing goes wrongSimpleBatchFilter.batchFinished()public java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class Filterpublic static void main(java.lang.String[] args)
args - arguments for the filter: use -h for help