예제 #1
0
파일: randist.go 프로젝트: postfix/gsl-1
func Laplace(r *rng.GslRng, a float64) float64 {
	return float64(C.gsl_ran_laplace((*C.gsl_rng)(unsafe.Pointer(r.Ptr())), C.double(a)))
}
예제 #2
0
// Laplace returns a random variate from the exponential distribution with width a.
func Laplace(rng RngState, a float64) float64 {
	return float64(C.gsl_ran_laplace(rng.state, C.double(a)))
}