[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #29543] normcdf lacks precision on the tails o
From: |
Guido Walter Pettinari |
Subject: |
[Octave-bug-tracker] [bug #29543] normcdf lacks precision on the tails of the distribution |
Date: |
Tue, 13 Apr 2010 18:10:09 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 |
Follow-up Comment #2, bug #29543 (project octave):
UPDATE:
I wrote an oct-file function that wraps the GSL function to compute the
normal CDF, i.e. "gsl_cdf_gaussian_P".
It works fine (it agrees with Mathematica and Matlab for all the cases I
considered) and it is from 1.2 to 5 times faster than Octave's "normcdf".
You can find the relevant code attached; I compiled it with the following
command:
mkoctfile gaussian_cdf.cc gaussian_pdfcdf.cc -L/opt/local/lib -lgsl
-lgslcblas
Obviously you should specify the directory that contains GSL libraries
instead of /opt/local/lib.
I hope it can be useful.
Cheers,
Guido
(file #20216)
_______________________________________________________
Additional Item Attachment:
File name: gaussian_cdf.zip Size:2 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29543>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/