This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: gsl-discuss Digest 29 Aug 2003 19:52:17 -0000 Issue 860
- From: Ajay Shah <ajayshah at mayin dot org>
- To: gsl-discuss at sources dot redhat dot com
- Date: Sat, 30 Aug 2003 08:29:53 +0530
- Subject: Re: gsl-discuss Digest 29 Aug 2003 19:52:17 -0000 Issue 860
- Organisation: Department of Economic Affairs, Ministry of Finance, New Delhi
- References: <1062186737.28720.ezmlm@sources.redhat.com>
> From: Rajarshi Guha <rajarshi@presidency.com>
> Reply-To: rajarshi@presidency.com
> To: gsl-discuss@sources.redhat.com
> Date: 29 Aug 2003 15:57:28 -0400
> Subject: a question regarding PDF's
>
> Hi,
> the function gsl_ran_gaussian_pdf() only takles the value of std dev.
> What would I need to do if I wanted the value from the distribution with
> a mean other than 0?
I actually find it odd that gsl_ran_gaussian_pdf() takes sigma as an
arg. The simplest and most elegant framework is where the library only
offers to serve up z ~ N(0,1) variates. When you want N(mu,sigma^2),
use mu + z*sigma.
--
Ajay Shah Consultant
ajayshah@mayin.org Department of Economic Affairs
http://www.mayin.org/~ajayshah Ministry of Finance, New Delhi