Class SubRangeEvaluation


  • public class SubRangeEvaluation
    extends AbstractHistoryPopupMenuItem
    Generates a fake evaluation using only predictions with an actual class value that fits in the specified sub-range.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • SubRangeEvaluation

        public SubRangeEvaluation()
    • Method Detail

      • queryUser

        protected double[] queryUser​(ResultItem item)
        Queries the user for the range.
        Parameters:
        item - the item to get the range from
        Returns:
        the range (min/max), null if canceled
      • addSubRangeInfo

        protected adams.data.spreadsheet.MetaData addSubRangeInfo​(adams.data.spreadsheet.MetaData info,
                                                                  double[] range)
        Adds the range information to a clone of the provided meta-data info and returns it.
        Parameters:
        info - the info to clone/extend
        range - the range to add
        Returns:
        the new meta-data
      • createSubEvaluation

        protected void createSubEvaluation​(ClassifyTab.HistoryPanel history,
                                           ResultItem item,
                                           double[] range)
        Creates the sub-range evaluation and adds it to the history.
        Parameters:
        history - the history to add the new item to
        item - the result item to use as basis
        range - the new range to use