Class SubRangeEvaluation
- java.lang.Object
-
- adams.gui.tools.wekainvestigator.history.AbstractHistoryPopupMenuItem<ClassifyTab.HistoryPanel,ClassifyTab>
-
- adams.gui.tools.wekainvestigator.tab.classifytab.history.AbstractHistoryPopupMenuItem
-
- adams.gui.tools.wekainvestigator.tab.classifytab.history.SubRangeEvaluation
-
public class SubRangeEvaluation extends AbstractHistoryPopupMenuItem
Generates a fake evaluation using only predictions with an actual class value that fits in the specified sub-range.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
-
Fields inherited from class adams.gui.tools.wekainvestigator.history.AbstractHistoryPopupMenuItem
m_Owner
-
-
Constructor Summary
Constructors Constructor Description SubRangeEvaluation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected adams.data.spreadsheet.MetaData
addSubRangeInfo(adams.data.spreadsheet.MetaData info, double[] range)
Adds the range information to a clone of the provided meta-data info and returns it.JMenuItem
createMenuItem(ClassifyTab.HistoryPanel history, int[] indices)
Creates the menu item to add to the history's popup menu.protected void
createSubEvaluation(ClassifyTab.HistoryPanel history, ResultItem item, double[] range)
Creates the sub-range evaluation and adds it to the history.String
getCategory()
The category for grouping menu items.String
getTitle()
The menu item title.protected double[]
queryUser(ResultItem item)
Queries the user for the range.-
Methods inherited from class adams.gui.tools.wekainvestigator.history.AbstractHistoryPopupMenuItem
getOwner, setOwner, updatePopupMenu
-
-
-
-
Method Detail
-
getCategory
public String getCategory()
The category for grouping menu items.- Specified by:
getCategory
in classAbstractHistoryPopupMenuItem<ClassifyTab.HistoryPanel,ClassifyTab>
- Returns:
- the group
-
getTitle
public String getTitle()
The menu item title.- Specified by:
getTitle
in classAbstractHistoryPopupMenuItem<ClassifyTab.HistoryPanel,ClassifyTab>
- Returns:
- the title
-
queryUser
protected double[] queryUser(ResultItem item)
Queries the user for the range.- Parameters:
item
- the item to get the range from- Returns:
- the range (min/max), null if canceled
-
addSubRangeInfo
protected adams.data.spreadsheet.MetaData addSubRangeInfo(adams.data.spreadsheet.MetaData info, double[] range)
Adds the range information to a clone of the provided meta-data info and returns it.- Parameters:
info
- the info to clone/extendrange
- the range to add- Returns:
- the new meta-data
-
createSubEvaluation
protected void createSubEvaluation(ClassifyTab.HistoryPanel history, ResultItem item, double[] range)
Creates the sub-range evaluation and adds it to the history.- Parameters:
history
- the history to add the new item toitem
- the result item to use as basisrange
- the new range to use
-
createMenuItem
public JMenuItem createMenuItem(ClassifyTab.HistoryPanel history, int[] indices)
Creates the menu item to add to the history's popup menu.- Specified by:
createMenuItem
in classAbstractHistoryPopupMenuItem<ClassifyTab.HistoryPanel,ClassifyTab>
- Parameters:
history
- the history panel this menu is forindices
- the selected indices- Returns:
- the menu item, null if failed to generate
-
-