示例#1
0
文件: randist.go 项目: postfix/gsl-1
func Rayleigh(r *rng.GslRng, sigma float64) float64 {
	return float64(C.gsl_ran_rayleigh((*C.gsl_rng)(unsafe.Pointer(r.Ptr())), C.double(sigma)))
}
示例#2
0
// Rayleigh returns a random variate from the Rayleigh distribution with scale
// parameter sigma.
func Rayleigh(rng RngState, sigma float64) float64 {
	return float64(C.gsl_ran_rayleigh(rng.state, C.double(sigma)))
}