This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]