Beispiel #1
0
func UgaussianRatioMethod(r *rng.GslRng) float64 {
	return float64(C.gsl_ran_ugaussian_ratio_method((*C.gsl_rng)(unsafe.Pointer(r.Ptr()))))
}
Beispiel #2
0
// UGaussian returns a unit Gaussian random variate with mean zero
// computed with the Kinderman-Mohanan-Leva ratio method.
func UgaussianRatioMethod(rng RngState) float64 {
	return float64(C.gsl_ran_ugaussian_ratio_method(rng.state))
}