Exemplo n.º 1
0
func Cauchy(r *rng.GslRng, a float64) float64 {
	return float64(C.gsl_ran_cauchy((*C.gsl_rng)(unsafe.Pointer(r.Ptr())), C.double(a)))
}
Exemplo n.º 2
0
// Cauchy returns a random variate from the Cauchy distribution with scale parameter a.
func Cauchy(rng RngState, a float64) float64 {
	return float64(C.gsl_ran_cauchy(rng.state, C.double(a)))
}