예제 #1
0
파일: randist.go 프로젝트: postfix/gsl-1
func BivariateGaussianPdf(x float64, y float64, sigmaX float64, sigmaY float64, rho float64) float64 {
	return float64(C.gsl_ran_bivariate_gaussian_pdf(C.double(x), C.double(y), C.double(sigmaX), C.double(sigmaY), C.double(rho)))
}
예제 #2
0
// BivariateGaussianPdf computes the probability density p(x,y) at (x,y)
// for a bivariate Gaussian distribution with standard deviations sigma x,
// sigma y and correlation coefficient rho.
func BivariateGaussianPdf(x, y, sigma_x, sigma_y, rho float64) float64 {
	return float64(C.gsl_ran_bivariate_gaussian_pdf(C.double(x), C.double(y),
		C.double(sigma_x), C.double(sigma_y), C.double(rho)))
}