Class AbstractMatrixStatistic

    • Field Detail

      • m_Rows

        protected Range m_Rows
        the rows of the subset to obtain.
      • m_LastError

        protected String m_LastError
        the last error that was generated.
    • Constructor Detail

      • AbstractMatrixStatistic

        public AbstractMatrixStatistic()
    • Method Detail

      • setRows

        public void setRows​(Range value)
        Sets the rows of the subset.
        Parameters:
        value - the rows
      • getRows

        public Range getRows()
        Returns the rows of the subset.
        Returns:
        the rows
      • rowsTipText

        public String rowsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setColumns

        public void setColumns​(SpreadSheetColumnRange value)
        Sets the columns of the subset.
        Parameters:
        value - the columns
      • getColumns

        public SpreadSheetColumnRange getColumns()
        Returns the columns of the subset.
        Returns:
        the columns
      • columnsTipText

        public String columnsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • hasLastError

        public boolean hasLastError()
        Checks whether there was an error with the last stats generation.
        Specified by:
        hasLastError in interface ErrorProvider
        Returns:
        true if there was an error
        See Also:
        getLastError()
      • getLastError

        public String getLastError()
        Returns the last error that occurred.
        Specified by:
        getLastError in interface ErrorProvider
        Returns:
        the last error, null if none occurred
      • check

        protected String check​(SpreadSheet sheet)
        Checks whether the spreadsheet can be handled.
        Parameters:
        sheet - the spreadsheet to check
        Returns:
        null if everythin ok, otherwise error message
      • createOutputHeader

        protected SpreadSheet createOutputHeader()
        Generates the header for the statistics result.
        Returns:
        the generated header
      • getNumericValues

        protected gnu.trove.list.TDoubleList getNumericValues​(SpreadSheet sheet)
        Returns all the numeric values in the matrix, skipping NaN and infinity.
        Parameters:
        sheet - the spreadsheet to process
        Returns:
        the values
      • doGenerate

        protected abstract SpreadSheet doGenerate​(SpreadSheet sheet)
        Performs the actual generation of statistics for the specified spreadsheet.
        Parameters:
        sheet - the spreadsheet subset to generate the stats for
        Returns:
        the generated statistics, null in case of an error
      • generate

        public SpreadSheet generate​(SpreadSheet sheet)
        Generates statistics for the specified spreadsheet.
        Parameters:
        sheet - the spreadsheet to generate the stats for
        Returns:
        the generated statistics, null in case of an error