Class DistanceFromConstant

    • Field Detail

      • m_Constant

        protected double m_Constant
        the 'flat liner' value.
    • Constructor Detail

      • DistanceFromConstant

        public DistanceFromConstant()
    • Method Detail

      • setConstant

        public void setConstant​(double value)
        Sets the constant to use.
        Parameters:
        value - the constant
      • getConstant

        public double getConstant()
        Returns the constant in use.
        Returns:
        the constant
      • constantTipText

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

        public int getNumScores()
        Returns how many score values will get generated.
        Specified by:
        getNumScores in class AbstractRowScore
        Returns:
        the number of scores
      • doCalculateScore

        protected Double[] doCalculateScore​(SpreadSheet sheet,
                                            int rowIndex)
        Performs the actual calculation of the row score.
        Specified by:
        doCalculateScore in class AbstractRowScore
        Parameters:
        sheet - the spreadsheet to generate the score for
        rowIndex - the row index
        Returns:
        the generated score, null in case of an error