Class CompareModels
- 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.CompareModels
-
public class CompareModels extends AbstractHistoryPopupMenuItem
Compares the predictions of two models.- 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 CompareModels()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcompareNumeric(String name1, ResultItem item1, String name2, ResultItem item2)Compares the two evaluations (numeric class).JMenuItemcreateMenuItem(ClassifyTab.HistoryPanel history, int[] indices)Creates the menu item to add to the history's popup menu.StringgetCategory()The category for grouping menu items.StringgetTitle()The menu item title.protected ArrayHistogrampromptHistogramSetup()Prompts the user for a histogram setup.-
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:
getCategoryin classAbstractHistoryPopupMenuItem<ClassifyTab.HistoryPanel,ClassifyTab>- Returns:
- the group
-
getTitle
public String getTitle()
The menu item title.- Specified by:
getTitlein classAbstractHistoryPopupMenuItem<ClassifyTab.HistoryPanel,ClassifyTab>- Returns:
- the title
-
promptHistogramSetup
protected ArrayHistogram promptHistogramSetup()
Prompts the user for a histogram setup.- Returns:
- the setup, null if user cancelled
-
compareNumeric
protected String compareNumeric(String name1, ResultItem item1, String name2, ResultItem item2)
Compares the two evaluations (numeric class).- Parameters:
name1- the name of the first entryitem1- the first itemname2- the name of the second entryitem2- the second item- Returns:
- null if successfully generated/displayed, otherwise error message
-
createMenuItem
public JMenuItem createMenuItem(ClassifyTab.HistoryPanel history, int[] indices)
Creates the menu item to add to the history's popup menu.- Specified by:
createMenuItemin 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
-
-