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