Interface FitTestValue

All Known Implementing Classes:
Chi2Data, LogLikelihoodData

public interface FitTestValue
Common interface for the results of fit tests, e.g. Chi2 or Log Likelihood
Author:
dg50
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    double
    the test score.
    double
    The value of the test in it's normal units, e.g.
  • Method Details

    • getTestValue

      double getTestValue()
      The value of the test in it's normal units, e.g. a Chi2 test will return something positive and a Log Likelihood test will return something negative.
      Returns:
      test result value
    • getDegreesOfFreedom

      int getDegreesOfFreedom()
      Returns:
      the number of degrees of freedom in the test
    • getTestScore

      double getTestScore()
      the test score. This is the same as the value returned by getTestValue, except that it may be flipped so that a larger value is always better, i.e. for a Chi2 test it will return -getTestValue, whereas for a Log Likelihood test it will return +testValue
      Returns:
      score - where more positive (or less negative) results are always better