Sha256: 9db101bda4e7267c1956d74e1d420d8414f27bc0b0e0122b2ce06eeb111e4aa1
Contents?: true
Size: 523 Bytes
Versions: 10
Compression:
Stored size: 523 Bytes
Contents
module Distribution module ChiSquare module Statistics2_ class << self # Return the P-value of the corresponding integral with # k degrees of freedom def p_value(pr,k) Statistics2.pchi2X_(k.to_i, pr) end # Chi-square cumulative distribution function (cdf). # # Returns the integral of Chi-squared distribution # with k degrees of freedom over [0, x] # def cdf(x, k) Statistics2.chi2dist(k.to_i,x) end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems