Class AbstractActualVsPredictedProcessor<T>

    • Field Detail

      • m_AdditionalRange

        protected SpreadSheetColumnRange m_AdditionalRange
        the range of the additional columns to include.
    • Constructor Detail

      • AbstractActualVsPredictedProcessor

        public AbstractActualVsPredictedProcessor()
    • Method Detail

      • setAdditionalRange

        public void setAdditionalRange​(SpreadSheetColumnRange value)
        Sets the range of columns to include.
        Parameters:
        value - the columns
      • getAdditionalRange

        public SpreadSheetColumnRange getAdditionalRange()
        Returns the range of columns to include.
        Returns:
        the columns
      • additionalRangeTipText

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

        public String check​(SpreadSheet sheet)
        Checks whether the data can be processed.
        Parameters:
        sheet - the data to check
        Returns:
        null if checks passed, otherwise error message
      • getActualNumeric

        protected double[] getActualNumeric​(SpreadSheet sheet)
        Returns the actual numeric values.
        Parameters:
        sheet - the sheet to extract the values from
        Returns:
        the values
      • getPredictedNumeric

        protected double[] getPredictedNumeric​(SpreadSheet sheet)
        Returns the predicted numeric values.
        Parameters:
        sheet - the sheet to extract the values from
        Returns:
        the values
      • getAdditional

        protected String[] getAdditional​(SpreadSheet sheet)
        Returns the additional values, row indices if no additional columns.
        Parameters:
        sheet - the sheet to extract data from
        Returns:
        the values
      • doProcess

        protected abstract T doProcess​(SpreadSheet sheet)
        Processes the actual vs predicted data and returns the output generated.
        Parameters:
        sheet - the data to process
        Returns:
        the output
      • process

        public T process​(SpreadSheet sheet,
                         MessageCollection errors)
        Processes the actual vs predicted data and returns the output generated.
        Specified by:
        process in interface ActualVsPredictedProcessor<T>
        Parameters:
        sheet - the data to process
        errors - for collecting errors
        Returns:
        the output, null in case of error