[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56342] function unifrnd(0, 0) returns "NaN",
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #56342] function unifrnd(0, 0) returns "NaN", but not 0. |
Date: |
Sat, 18 May 2019 14:51:01 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Update of bug #56342 (project octave):
Category: Octave Function => Octave Forge Package
Item Group: Incorrect Result => Matlab Compatibility
Status: None => Confirmed
Release: 4.4.0 => other
_______________________________________________________
Follow-up Comment #1:
Changing the category to "Octave Forge Package". A maintainer for the
statistics package will need to look at this. If you can provide a patch that
would help speed things along.
Matlab isn't known for their statistics packages following academically
rigorous statistics. For reference, I checked with the R language and they
also give '0' for a zero-length interval so returning the minimum limit when
the interval is of zero length is correct.
An additional three BIST tests for unifrnd.m should be
%!assert (unifrnd (0,0), 0)
%!assert (unifrnd (1,1), 1)
%!assert (unifrnd (1,0), NaN)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56342>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56342] function unifrnd(0, 0) returns "NaN", but not 0., Liming He, 2019/05/17
- [Octave-bug-tracker] [bug #56342] function unifrnd(0, 0) returns "NaN", but not 0.,
Rik <=
- [Octave-bug-tracker] [bug #56342] [octave forge] (statistics) function unifrnd(0, 0) returns NaN but not 0, Mike Miller, 2019/05/19
- [Octave-bug-tracker] [bug #56342] [octave forge] (statistics) function unifrnd(0, 0) returns NaN but not 0, Anthony Morast, 2019/05/21
- [Octave-bug-tracker] [bug #56342] [octave forge] (statistics) function unifrnd(0, 0) returns NaN but not 0, Anthony Morast, 2019/05/21
- [Octave-bug-tracker] [bug #56342] [octave forge] (statistics) function unifrnd(0, 0) returns NaN but not 0, Anthony Morast, 2019/05/21
- [Octave-bug-tracker] [bug #56342] [octave forge] (statistics) function unifrnd(0, 0) returns NaN but not 0, Mike Miller, 2019/05/21
- [Octave-bug-tracker] [bug #56342] [octave forge] (statistics) function unifrnd(0, 0) returns NaN but not 0, John Donoghue, 2019/05/28
- [Octave-bug-tracker] [bug #56342] [octave forge] (statistics) function unifrnd(0, 0) returns NaN but not 0, John Donoghue, 2019/05/28