示例#1
0
文件: randist.go 项目: postfix/gsl-1
func CdfChisqP(x float64, nu float64) float64 {
	return float64(C.gsl_cdf_chisq_P(C.double(x), C.double(nu)))
}
示例#2
0
文件: chisq.go 项目: RenatoGeh/gospn
// ChiSquare returns the cumulative distribution function at point chi, that is:
// 	Pr(X^2 <= chi)
// Where X^2 is the chi-square distribution X^2(df), with df being the degree of freedom.
func ChiSquare(chi float64, df int) float64 {
	return float64(C.gsl_cdf_chisq_P(C.double(chi), C.double(df)))
}