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 WekaAttributeRangem_Rangethe range of attributes to work on.protected static StringRANGE-
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 WekaAttributeRangegetDefaultRange()Returns the default range.String[]getOptions()Gets the current settings of the classifier.WekaAttributeRangegetRange()Returns the attribute range to work on.EnumerationlistOptions()Returns an enumeration describing the available options.StringrangeTipText()Returns the tip text for this property.voidsetOptions(String[] options)Parses a given list of options.voidsetRange(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:
listOptionsin interfaceweka.core.OptionHandler- Overrides:
listOptionsin 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:
setOptionsin interfaceweka.core.OptionHandler- Overrides:
setOptionsin 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:
getOptionsin interfaceweka.core.OptionHandler- Overrides:
getOptionsin 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.
-
-