bugGNU Scientific Library - Bugs: bug #47193, gsl_ran_poisson_pdf with mu=0


You are not allowed to post comments on this tracker with your current authentication level.

bug #47193: gsl_ran_poisson_pdf with mu=0

Submitter:  Patrick Alken <psa>
Submitted:  Thu 18 Feb 2016 04:39:48 PM UTC
Category:  None Severity:  3 - Normal
Operating System:  Status:  None
Assigned to:  None Open/Closed:  Open

Thu 09 Nov 2017 07:03:22 AM UTC, comment #1: 

Same bug report as bug #43326.

Timothee Flutre <tflutre>
Thu 18 Feb 2016 04:39:48 PM UTC, original submission:  

from trojkan =at= gmail =dot= com


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

Patrick Alken <psa>
Group administrator


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by tflutre (Posted a comment)
  • -email is unavailable- added by psa (Submitted the item)

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code