Mombu the Science Forum sponsored links

Go Back   Mombu the Science Forum > Science > Algorithm of Gaussian probability distribution function
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 7th November 10:03
luigino
External User
 
Posts: 1
Default Algorithm of Gaussian probability distribution function



Hello all,

I'm looking for a (C-) implementation of the Gaussian probability
distribution function.

I want to calculate P(X<x), i.e. the probability of stochastic variable X
(which conforms the
gaussian distribution) being less than some value 'x'.

Thanks a lot!
Luigino.
  Reply With Quote


  sponsored links


2 7th November 10:03
iandjmsmith
External User
 
Posts: 1
Default Algorithm of Gaussian probability distribution function



http://groups.google.co.uk/groups?hl=en&lr=&ie=UTF-8&threadm=820cf52a.0402141539.67a25822%40posting.google.com
has lots of discussion and some C code for calculating the erf
function or the normal distribution cdf, the more usual name for the
gaussian distribution cdf, I think.

Most of the code works to a limited number of decimal places or are
approximations based on quadrature. Personally, I prefer algorithms
which can be made arbitrarily accurate even though they won't be as
quick (for an example see the "cnormal" function in
http://members.aol.com/iandjmsmith/myfunctions.js which is easy to
translate into C).

Ian Smith
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666