class MoreMath::ChiSquareDistribution

def probability(x)

for the value +x+.
Returns the cumulative probability (p-value) of the ChiSquareDistribution
def probability(x)
  if x < 0
    0.0
  else
    gammaP_regularized(x / 2, @df_half)
  end
end