[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65405] median errors for vectors of NaNs with
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #65405] median errors for vectors of NaNs with option 'omitnan' |
Date: |
Sat, 2 Mar 2024 21:06:58 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?65405>
Summary: median errors for vectors of NaNs with option
'omitnan'
Group: GNU Octave
Submitter: nrjank
Submitted: Sat 02 Mar 2024 09:06:58 PM EST
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error or Warning
Status: In Progress
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 9.0.90
Discussion Lock: Any
Operating System: Any
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sat 02 Mar 2024 09:06:58 PM EST By: Nicholas Jankowski <nrjank>
both in octave core and in the statistics package, median ([NaN, NaN),
'omitnan') results in an error:
>> median([NaN NaN],'omitnan')
error: x(0): subscripts must be either integers 1 to (2^63)-1 or logicals
error: called from
median at line 326 column 11
turns out it fails to check if all(isnan(x)) and then tries to index x for all
non-nan with x(0), triggering the error.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65405>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #65405] median errors for vectors of NaNs with option 'omitnan',
Nicholas Jankowski <=
- [Octave-bug-tracker] [bug #65405] median errors for vectors of NaNs with option 'omitnan', Nicholas Jankowski, 2024/03/02
- [Octave-bug-tracker] [bug #65405] median errors for vectors of NaNs with option 'omitnan', Rik, 2024/03/02
- [Octave-bug-tracker] [bug #65405] median errors for vectors of NaNs with option 'omitnan', Nicholas Jankowski, 2024/03/02
- [Octave-bug-tracker] [bug #65405] median errors for vectors of NaNs with option 'omitnan', Nicholas Jankowski, 2024/03/02
- [Octave-bug-tracker] [bug #65405] median errors for vectors of NaNs with option 'omitnan', Nicholas Jankowski, 2024/03/02
- [Octave-bug-tracker] [bug #65405] median errors for vectors of NaNs with option 'omitnan', Rik, 2024/03/03
- [Octave-bug-tracker] [bug #65405] median errors for vectors of NaNs with option 'omitnan', Rik, 2024/03/03
- [Octave-bug-tracker] [bug #65405] median errors for vectors of NaNs with option 'omitnan', Nicholas Jankowski, 2024/03/04
- [Octave-bug-tracker] [bug #65405] median errors for vectors of NaNs and Infs, Nicholas Jankowski, 2024/03/05