Exemplo n.º 1
0
func Lognormal(r *rng.GslRng, zeta float64, sigma float64) float64 {
	return float64(C.gsl_ran_lognormal((*C.gsl_rng)(unsafe.Pointer(r.Ptr())), C.double(zeta), C.double(sigma)))
}
Exemplo n.º 2
0
// Lognormal returns a random variate from the lognormal distribution
func Lognormal(rng RngState, zeta, sigma float64) float64 {
	return float64(C.gsl_ran_lognormal(rng.state, C.double(zeta), C.double(sigma)))
}