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