Class MultiMatrixStatistic
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.spreadsheet.matrixstatistic.AbstractMatrixStatistic
-
- adams.data.spreadsheet.matrixstatistic.MultiMatrixStatistic
-
- All Implemented Interfaces:
Destroyable
,ErrorProvider
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,Serializable
public class MultiMatrixStatistic extends AbstractMatrixStatistic
Combines the statistics calculated from the specified statistic generators.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-row <adams.core.Range> (property: rows) The rows of the subset to retrieve. default: first-last example: A range is a comma-separated list of single 1-based indices or sub-ranges of indices ('start-end'); 'inv(...)' inverts the range '...'; the following placeholders can be used as well: first, second, third, last_2, last_1, last
-col <adams.data.spreadsheet.SpreadSheetColumnRange> (property: columns) The columns of the subset to retrieve; A range is a comma-separated list of single 1-based indices or sub-ranges of indices ('start-end'); 'inv(.. .)' inverts the range '...'; column names (case-sensitive) as well as the following placeholders can be used: first, second, third, last_2, last_1, last; numeric indices can be enforced by preceding them with '#' (eg '#12' ); column names can be surrounded by double quotes. default: first-last example: A range is a comma-separated list of single 1-based indices or sub-ranges of indices ('start-end'); 'inv(...)' inverts the range '...'; column names (case-sensitive) as well as the following placeholders can be used: first, second, third, last_2, last_1, last; numeric indices can be enforced by preceding them with '#' (eg '#12'); column names can be surrounded by double quotes.
-statistic <adams.data.spreadsheet.matrixstatistic.AbstractMatrixStatistic> [-statistic ...] (property: statistics) The statistics to calculate. default:
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractMatrixStatistic[]
m_Statistics
the statistics to calculate.-
Fields inherited from class adams.data.spreadsheet.matrixstatistic.AbstractMatrixStatistic
m_Columns, m_LastError, m_Rows
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description MultiMatrixStatistic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.protected SpreadSheet
doGenerate(SpreadSheet sheet)
Performs the actual generation of statistics for the specified spreadsheet.AbstractMatrixStatistic[]
getStatistics()
Returns the statistic generators in use.String
globalInfo()
Returns a string describing the object.void
setStatistics(AbstractMatrixStatistic[] value)
Sets the statistic generators to use.String
statisticsTipText()
Returns the tip text for this property.-
Methods inherited from class adams.data.spreadsheet.matrixstatistic.AbstractMatrixStatistic
check, columnsTipText, createOutputHeader, generate, getColumns, getLastError, getNumericValues, getRows, hasLastError, rowsTipText, setColumns, setRows
-
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 adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Statistics
protected AbstractMatrixStatistic[] m_Statistics
the statistics to calculate.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractMatrixStatistic
-
setStatistics
public void setStatistics(AbstractMatrixStatistic[] value)
Sets the statistic generators to use.- Parameters:
value
- the generators
-
getStatistics
public AbstractMatrixStatistic[] getStatistics()
Returns the statistic generators in use.- Returns:
- the generators
-
statisticsTipText
public String statisticsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
doGenerate
protected SpreadSheet doGenerate(SpreadSheet sheet)
Performs the actual generation of statistics for the specified spreadsheet.- Specified by:
doGenerate
in classAbstractMatrixStatistic
- Parameters:
sheet
- the spreadsheet subset to generate the stats for- Returns:
- the generated statistics, null in case of an error
-
-