Example #1
0
func Poisson(r *rng.GslRng, mu float64) uint32 {
	return uint32(C.gsl_ran_poisson((*C.gsl_rng)(unsafe.Pointer(r.Ptr())), C.double(mu)))
}
Example #2
0
func PoissonRandomInt(rng *RNG, lambda float64) int {
	return int(C.gsl_ran_poisson(rng.g, C.double(lambda)))
}