Class LogLikelihoodData

java.lang.Object
group3dlocaliser.algorithm.LogLikelihoodData
All Implemented Interfaces:
FitTestValue

public class LogLikelihoodData extends Object implements FitTestValue
  • Constructor Details

    • LogLikelihoodData

      public LogLikelihoodData(double llValue, int nDF)
      Parameters:
      llValue - Log Likelihood value
      nDF - Number of degreees of freedom
  • Method Details

    • getTestValue

      public double getTestValue()
      Description copied from interface: FitTestValue
      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.
      Specified by:
      getTestValue in interface FitTestValue
      Returns:
      test result value
    • getDegreesOfFreedom

      public int getDegreesOfFreedom()
      Specified by:
      getDegreesOfFreedom in interface FitTestValue
      Returns:
      the number of degrees of freedom in the test
    • getTestScore

      public double getTestScore()
      Description copied from interface: FitTestValue
      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
      Specified by:
      getTestScore in interface FitTestValue
      Returns:
      score - where more positive (or less negative) results are always better