[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gsl] [bug #47193] gsl_ran_poisson_pdf with mu=0
From: |
Patrick Alken |
Subject: |
[Bug-gsl] [bug #47193] gsl_ran_poisson_pdf with mu=0 |
Date: |
Thu, 18 Feb 2016 16:39:49 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 |
URL:
<http://savannah.gnu.org/bugs/?47193>
Summary: gsl_ran_poisson_pdf with mu=0
Project: GNU Scientific Library
Submitted by: psa
Submitted on: Thu 18 Feb 2016 04:39:48 PM GMT
Category: None
Severity: 3 - Normal
Operating System:
Status: None
Assigned to: None
Open/Closed: Open
Release:
Discussion Lock: Any
_______________________________________________________
Details:
from trojkan =at= gmail =dot= com
Hi,
I noticed that gsl_ran_poisson_pdf(k, mu) error out if mu=0.0. IMHO a Poisson
distribution with zero mean is a perfectly valid distribition (although it is
not very random), so I find it unexpected that the function doesn't support
it. I suggest to add some code taking care of the special case. Something
like:
if (!mu) {
if (k)
return 0.0
return 1.0
}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47193>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gsl] [bug #47193] gsl_ran_poisson_pdf with mu=0,
Patrick Alken <=