[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48774] Functions for moving statistics
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #48774] Functions for moving statistics |
Date: |
Wed, 19 Dec 2018 12:34:36 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063 |
Follow-up Comment #28, bug #48774 (project octave):
@Juan: Regarding 'omitnan', it does not appear to be implemented so I added a
warning. Here is test code that I used.
x = (1:10)';
x(5) = NaN;
movmean (x, 3, 'omitnan')
Under Matlab, this produces
ans =
1.5000
2.0000
3.0000
3.5000
5.0000
6.5000
7.0000
8.0000
9.0000
9.5000
Using the original implementation from your repository
octave:8> movfun (@mean, x, 3, 'nancond', 'omitnan')
ans =
1.5000
2.0000
3.0000
NaN
NaN
NaN
7.0000
8.0000
9.0000
9.5000
For completeness, running with 'includenan' in Matlab
movmean (x, 3, 'includenan')
ans =
1.5000
2.0000
3.0000
NaN
NaN
NaN
7.0000
8.0000
9.0000
9.5000
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?48774>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #48774] Functions for moving statistics, (continued)
- [Octave-bug-tracker] [bug #48774] Functions for moving statistics, Rik, 2018/12/18
- [Octave-bug-tracker] [bug #48774] Functions for moving statistics, Juan Pablo Carbajal, 2018/12/19
- [Octave-bug-tracker] [bug #48774] Functions for moving statistics, Juan Pablo Carbajal, 2018/12/19
- [Octave-bug-tracker] [bug #48774] Functions for moving statistics, Juan Pablo Carbajal, 2018/12/19
- [Octave-bug-tracker] [bug #48774] Functions for moving statistics, Juan Pablo Carbajal, 2018/12/19
- [Octave-bug-tracker] [bug #48774] Functions for moving statistics, Juan Pablo Carbajal, 2018/12/19
- [Octave-bug-tracker] [bug #48774] Functions for moving statistics, Juan Pablo Carbajal, 2018/12/19
- [Octave-bug-tracker] [bug #48774] Functions for moving statistics, Juan Pablo Carbajal, 2018/12/19
- [Octave-bug-tracker] [bug #48774] Functions for moving statistics, Rik, 2018/12/19
- [Octave-bug-tracker] [bug #48774] Functions for moving statistics, Rik, 2018/12/19
- [Octave-bug-tracker] [bug #48774] Functions for moving statistics,
Rik <=
- [Octave-bug-tracker] [bug #48774] Functions for moving statistics, Rik, 2018/12/19
- [Octave-bug-tracker] [bug #48774] Functions for moving statistics, Juan Pablo Carbajal, 2018/12/21
- [Octave-bug-tracker] [bug #48774] Functions for moving statistics, Rik, 2018/12/21