[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59636] iqr function does not produce Matlab c
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #59636] iqr function does not produce Matlab compatible output |
Date: |
Mon, 7 Dec 2020 17:30:06 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?59636>
Summary: iqr function does not produce Matlab compatible
output
Project: GNU Octave
Submitted by: nrjank
Submitted on: Mon 07 Dec 2020 05:30:03 PM EST
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Nicholas Jankowski
Originator Email:
Open/Closed: Open
Release: 5.2.0
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Details:
iqr includes some input options that Octave does yet support (the "all" flag,
an array for 'dim', probability distribution inputs). but even apart from
those, the output on regular data appears not to match when there's an even
number for median. (note that median matches, so it's not an error stemming
from that).
Eg:
>> X = reshape(1:12,[3 4])
X =
1 4 7 10
2 5 8 11
3 6 9 12
>> median(X)
ans =
2 5 8 11
>> median(X,2)
ans =
5.5000
6.5000
7.5000
>> iqr(X)
ans =
1.5000 1.5000 1.5000 1.5000
>> iqr(X,2)
ans =
6
6
6
and in Octave 5.2.0
>> X = reshape(1:12,[3 4])
X =
1 4 7 10
2 5 8 11
3 6 9 12
>> median(X)
ans =
2 5 8 11
>> median(X,2)
ans =
5.5000
6.5000
7.5000
>> iqr(X)
ans =
2 2 2 2
>> iqr(X,2)
ans =
6
6
6
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59636>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #59636] iqr function does not produce Matlab compatible output,
Nicholas Jankowski <=
- [Octave-bug-tracker] [bug #59636] iqr function does not produce Matlab compatible output, Nicholas Jankowski, 2020/12/07
- [Octave-bug-tracker] [bug #59636] iqr function does not produce Matlab compatible output, Nicholas Jankowski, 2020/12/07
- [Octave-bug-tracker] [bug #59636] iqr function does not produce Matlab compatible output, Nicholas Jankowski, 2020/12/07
- [Octave-bug-tracker] [bug #59636] iqr function does not produce Matlab compatible output, John W. Eaton, 2020/12/11
- [Octave-bug-tracker] [bug #59636] iqr function does not produce Matlab compatible output, Nicholas Jankowski, 2020/12/11
- [Octave-bug-tracker] [bug #59636] iqr function does not produce Matlab compatible output, Guillaume, 2020/12/11
- [Octave-bug-tracker] [bug #59636] iqr function does not produce Matlab compatible output, Nicholas Jankowski, 2020/12/11
- [Octave-bug-tracker] [bug #59636] iqr function does not produce Matlab compatible output, Nicholas Jankowski, 2020/12/11