Statistics/Chi-squared distribution: Difference between revisions

m
→‎{{header|Julia}}: removed duplicated function definition
(→‎{{header|Phix}}: made p2js compatible, added online link)
m (→‎{{header|Julia}}: removed duplicated function definition)
Line 113:
function cdf_χ2(x, k)
return x <= 0 || k <= 0 ? 0.0 : gamma_cdf(k / 2, x / 2)
end
 
""" Cumulative probability function (cdf) for chi-squared """
function cdf_χ2(x, k)
return x <= 0 || k <= 0 ? 0.0 : gamma_cdf(k / 2, x / 2)
end
 
7,796

edits