예제 #1
0
파일: randist.go 프로젝트: postfix/gsl-1
func LevySkew(r *rng.GslRng, c float64, alpha float64, beta float64) float64 {
	return float64(C.gsl_ran_levy_skew((*C.gsl_rng)(unsafe.Pointer(r.Ptr())), C.double(c), C.double(alpha), C.double(beta)))
}
예제 #2
0
// LevySkew returns a random variate from the Levy skew stable distribution with
// scale c, exponent alpha and skewness parameter beta. The skewness parameter must
// lie in the range [−1, 1].
// XXX: The algorithm only works for 0 < alpha <= 2
func LevySkew(rng RngState, c, alpha, beta float64) float64 {
	return float64(C.gsl_ran_levy_skew(rng.state, C.double(c), C.double(alpha),
		C.double(beta)))
}