Exemplo n.º 1
0
func Rayleigh(r *rng.GslRng, sigma float64) float64 {
	return float64(C.gsl_ran_rayleigh((*C.gsl_rng)(unsafe.Pointer(r.Ptr())), C.double(sigma)))
}
Exemplo n.º 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)))
}