|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.filters.Filter
weka.filters.AddFilter
wpi.filters.AddWithValueFilter
An instance filter that adds a new attribute to the dataset and assigns the given value to all the instances. Uses weka.filters.AddFilter
Field Summary | |
protected java.lang.String |
value
The value to assign |
Fields inherited from class weka.filters.AddFilter |
m_AttributeType, m_Insert, m_Labels, m_Name |
Fields inherited from class weka.filters.Filter |
m_NewBatch |
Constructor Summary | |
AddWithValueFilter()
|
Method Summary | |
java.lang.String[] |
getOptions()
Gets the current settings of the filter. |
java.lang.String |
getValue()
Returns the value to be assigned the attribute |
java.lang.String |
globalInfo()
Returns a string decribing this filter. |
boolean |
input(weka.core.Instance instance)
Input an instance for filtering. |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options |
static void |
main(java.lang.String[] argv)
Main method for testing this class. |
void |
setOptions(java.lang.String[] options)
Parses a list of options for this object. |
void |
setValue(java.lang.String v)
Sets the value to be assigned the attribute |
java.lang.String |
valueTextTip()
|
Methods inherited from class weka.filters.AddFilter |
attributeIndexTipText, attributeNameTipText, getAttributeIndex, getAttributeName, getNominalLabels, nominalLabelsTipText, setAttributeIndex, setAttributeName, setInputFormat, setNominalLabels |
Methods inherited from class weka.filters.Filter |
batchFilterFile, batchFinished, bufferInput, copyStringValues, copyStringValues, filterFile, flushInput, getInputFormat, getInputStringIndex, getOutputFormat, getOutputStringIndex, getStringIndices, inputFormat, isOutputFormatDefined, numPendingOutput, output, outputFormat, outputFormatPeek, outputPeek, push, resetQueue, setOutputFormat, useFilter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String value
Constructor Detail |
public AddWithValueFilter()
Method Detail |
public void setValue(java.lang.String v)
v
- the valuepublic java.lang.String getValue()
public java.lang.String valueTextTip()
public boolean input(weka.core.Instance instance)
instance
- the input instance
java.lang.IllegalStateException
- if no input format has been defined.public java.lang.String globalInfo()
public java.util.Enumeration listOptions()
listOptions
in interface weka.core.OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
options
- the list of options as an array of strings
-V value
java.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
public static void main(java.lang.String[] argv)
argv
- should contain arguments to the filter:
use -h for help
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |