public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: gsl-discuss Digest 29 Aug 2003 19:52:17 -0000 Issue 860
       [not found] <1062186737.28720.ezmlm@sources.redhat.com>
@ 2003-08-30  2:59 ` Ajay Shah
  0 siblings, 0 replies; only message in thread
From: Ajay Shah @ 2003-08-30  2:59 UTC (permalink / raw)
  To: gsl-discuss

> 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-30  2:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1062186737.28720.ezmlm@sources.redhat.com>
2003-08-30  2:59 ` gsl-discuss Digest 29 Aug 2003 19:52:17 -0000 Issue 860 Ajay Shah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).