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.
        value - the constant
      • getConstant

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

        public String constantTipText()
        Returns the tip text for this property.
        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
        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
        sheet - the spreadsheet to generate the score for
        rowIndex - the row index
        the generated score, null in case of an error