gsl-discuss Digest 29 Aug 2003 19:52:17 -0000 Issue 860

Ajay Shah ajayshah@mayin.org
Sat Aug 30 02:59:00 GMT 2003


> 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



More information about the Gsl-discuss mailing list