Class ProbChi2perNDF

java.lang.Object
org.jlab.clas.tracking.utilities.ProbChi2perNDF

public class ProbChi2perNDF extends Object
Chi-square probability utilities
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    prob(double chi2, int ndf)
    Returns the upper-tail probability (survival function, or p-value) of the chi-square distribution: P(X >= chi2) for X ~ χ²(ndf).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProbChi2perNDF

      public ProbChi2perNDF()
  • Method Details

    • prob

      public static double prob(double chi2, int ndf)
      Returns the upper-tail probability (survival function, or p-value) of the chi-square distribution: P(X >= chi2) for X ~ χ²(ndf).
      Parameters:
      chi2 - the chi-square statistic
      ndf - the number of degrees of freedom
      Returns:
      the probability of observing a chi-square value at least as large as chi2, in the range [0, 1]