[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36328] Poissrnd bug for lambda =0 (again)
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #36328] Poissrnd bug for lambda =0 (again) |
Date: |
Sat, 28 Apr 2012 14:00:28 +0000 |
User-agent: |
Opera/9.80 (X11; Linux x86_64; U; en-GB) Presto/2.10.229 Version/11.62 |
URL:
<http://savannah.gnu.org/bugs/?36328>
Summary: Poissrnd bug for lambda =0 (again)
Project: GNU Octave
Submitted by: None
Submitted on: Sat 28 Apr 2012 02:00:27 PM UTC
Category: Libraries
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.1
Operating System: GNU/Linux
_______________________________________________________
Details:
Hi
poissrnd(0, 1,1)
returns a NaN.
Poissonrnd should return a zero instead.
(Mathematically there is nothing wrong with a poisson process
with rate 0, the outcome is simply always zero)
The fix is simple.
In poissrnd.m replace twice
if (lambda > 0...
with
if (lambda >= 0...
Note this is a regression from bug address@hidden reported ages ago.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36328>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #36328] Poissrnd bug for lambda =0 (again),
anonymous <=