[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] getting max value of a gaussian random variate

From: Sébastien Kerdélo
Subject: [Help-gsl] getting max value of a gaussian random variate
Date: 24 Oct 2003 09:49:56 +0200


I'm currently using the function gsl_ran_gaussian in order to generate
random numbers with a gaussian probability density.

I'm interested in finding a way to get the max value that this function
can return. Is there a way to get it ?

I have the test the following code to get it, but unfortunately it
doesn't work.

gsl_rng * rng = gsl_rng_alloc(gsl_rng_taus2);

gsl_rng_set(rng, gsl_rng_default_seed);

sigma = sqrt(2.0*8.1);

max = gsl_cdf_gaussian_Pinv((gsl_rng_max(rng)/(1.0+gsl_rng_max(rng))),


Thanks for your help,


Sebastien KERDELO
Laboratoire d'Ingénierie Informatique
Ecole Nationale d'Ingenieurs de Brest
Technopole Brest Iroise - Parvis Blaise Pascal
BP 30815 , F-29608 Brest Cedex , FRANCE
Tel. : +33 (0)2 98 05 66 75
Fax. : +33 (0)2 98 05 66 29
E-mail : address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]