Class ArrayStatistic
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.instances.instancestable.AbstractProcessSelectedRows
-
- adams.gui.visualization.instances.instancestable.ArrayStatistic
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.SizeOfHandler
,InstancesTablePopupMenuItem
,ProcessRow
,ProcessSelectedRows
,Serializable
,Comparable<InstancesTablePopupMenuItem>
public class ArrayStatistic extends AbstractProcessSelectedRows implements ProcessRow
Allows the calculation of row statistics.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_ATTRIBUTES
static String
KEY_STATISTIC
-
Fields inherited from class adams.gui.visualization.instances.instancestable.AbstractProcessSelectedRows
m_MenuItemText
-
-
Constructor Summary
Constructors Constructor Description ArrayStatistic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doProcessSelectedRows(InstancesTablePopupMenuItemHelper.TableState state)
Processes the specified row.protected String
getDefaultMenuItem()
Returns the default name for the menu item.String
globalInfo()
Returns a string describing the object.int
maxNumRows()
Returns the maximum number of rows that the plugin requires.int
minNumRows()
Returns the minimum number of rows that the plugin requires.boolean
processRow(InstancesTablePopupMenuItemHelper.TableState state)
Processes the specified row.protected adams.core.Properties
promptParameters(InstancesTable table)
Prompts the user for parameters.protected double[]
subset(double[] values, int[] atts)
Returns the subset of the values.-
Methods inherited from class adams.gui.visualization.instances.instancestable.AbstractProcessSelectedRows
check, compareTo, defineOptions, getIconName, getMenuItem, getMenuItemText, isAvailable, menuItemTextTipText, processSelectedRows, setMenuItemText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface adams.gui.visualization.instances.instancestable.InstancesTablePopupMenuItem
getIconName, getMenuItem, isAvailable
-
-
-
-
Field Detail
-
KEY_ATTRIBUTES
public static final String KEY_ATTRIBUTES
- See Also:
- Constant Field Values
-
KEY_STATISTIC
public static final String KEY_STATISTIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
getDefaultMenuItem
protected String getDefaultMenuItem()
Returns the default name for the menu item.- Specified by:
getDefaultMenuItem
in classAbstractProcessSelectedRows
- Returns:
- the name
-
minNumRows
public int minNumRows()
Returns the minimum number of rows that the plugin requires.- Specified by:
minNumRows
in interfaceProcessSelectedRows
- Returns:
- the minimum
-
maxNumRows
public int maxNumRows()
Returns the maximum number of rows that the plugin requires.- Specified by:
maxNumRows
in interfaceProcessSelectedRows
- Returns:
- the maximum, -1 for none
-
subset
protected double[] subset(double[] values, int[] atts)
Returns the subset of the values.- Parameters:
values
- all valuesatts
- the attributes to retain- Returns:
- the subset
-
promptParameters
protected adams.core.Properties promptParameters(InstancesTable table)
Prompts the user for parameters.- Parameters:
table
- the table this is for- Returns:
- the parameters, null if cancelled dialog
-
doProcessSelectedRows
protected boolean doProcessSelectedRows(InstancesTablePopupMenuItemHelper.TableState state)
Processes the specified row.- Specified by:
doProcessSelectedRows
in classAbstractProcessSelectedRows
- Parameters:
state
- the table state- Returns:
- true if successful
-
processRow
public boolean processRow(InstancesTablePopupMenuItemHelper.TableState state)
Processes the specified row.- Specified by:
processRow
in interfaceProcessRow
- Parameters:
state
- the table state- Returns:
- true if successful
-
-