Class AbstractRangeBasedSelectionProcessor
- java.lang.Object
-
- weka.filters.unsupervised.instance.multirowprocessor.AbstractMultiRowProcessorPlugin
-
- weka.filters.unsupervised.instance.multirowprocessor.processor.AbstractSelectionProcessor
-
- weka.filters.unsupervised.instance.multirowprocessor.processor.AbstractRangeBasedSelectionProcessor
-
- All Implemented Interfaces:
adams.core.GlobalInfoSupporter
,Serializable
,weka.core.OptionHandler
- Direct Known Subclasses:
Average
public abstract class AbstractRangeBasedSelectionProcessor extends AbstractSelectionProcessor
Ancestor for processors that work on a range of attributes.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected WekaAttributeRange
m_Range
the range of attributes to work on.protected static String
RANGE
-
Fields inherited from class weka.filters.unsupervised.instance.multirowprocessor.AbstractMultiRowProcessorPlugin
DEBUG, m_Debug
-
-
Constructor Summary
Constructors Constructor Description AbstractRangeBasedSelectionProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WekaAttributeRange
getDefaultRange()
Returns the default range.String[]
getOptions()
Gets the current settings of the classifier.WekaAttributeRange
getRange()
Returns the attribute range to work on.Enumeration
listOptions()
Returns an enumeration describing the available options.String
rangeTipText()
Returns the tip text for this property.void
setOptions(String[] options)
Parses a given list of options.void
setRange(WekaAttributeRange value)
Sets the attribute range to work on.-
Methods inherited from class weka.filters.unsupervised.instance.multirowprocessor.processor.AbstractSelectionProcessor
check, doProcessRows, generateOutputFormat, processRows
-
Methods inherited from class weka.filters.unsupervised.instance.multirowprocessor.AbstractMultiRowProcessorPlugin
debugMsg, debugTipText, getDebug, globalInfo, reset, setDebug
-
-
-
-
Field Detail
-
RANGE
protected static String RANGE
-
m_Range
protected WekaAttributeRange m_Range
the range of attributes to work on.
-
-
Method Detail
-
listOptions
public Enumeration listOptions()
Returns an enumeration describing the available options.- Specified by:
listOptions
in interfaceweka.core.OptionHandler
- Overrides:
listOptions
in classAbstractMultiRowProcessorPlugin
- Returns:
- an enumeration of all the available options.
-
setOptions
public void setOptions(String[] options) throws Exception
Parses a given list of options.- Specified by:
setOptions
in interfaceweka.core.OptionHandler
- Overrides:
setOptions
in classAbstractMultiRowProcessorPlugin
- Parameters:
options
- the list of options as an array of strings- Throws:
Exception
- if an option is not supported
-
getOptions
public String[] getOptions()
Gets the current settings of the classifier.- Specified by:
getOptions
in interfaceweka.core.OptionHandler
- Overrides:
getOptions
in classAbstractMultiRowProcessorPlugin
- Returns:
- an array of strings suitable for passing to setOptions
-
getDefaultRange
protected WekaAttributeRange getDefaultRange()
Returns the default range.- Returns:
- the default range
-
setRange
public void setRange(WekaAttributeRange value)
Sets the attribute range to work on.- Parameters:
value
- the range
-
getRange
public WekaAttributeRange getRange()
Returns the attribute range to work on.- Returns:
- the range
-
rangeTipText
public String rangeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
-