Package org.jlab.clas.tracking.utilities
Class ProbChi2perNDF
java.lang.Object
org.jlab.clas.tracking.utilities.ProbChi2perNDF
Chi-square probability utilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleprob(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).
-
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 statisticndf- 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]
-