Mercurial > octave
comparison etc/NEWS.9.md @ 31993:e4bd4349af42
mad.m: Improve compatibility using new mean/median functions (patch #10331)
*/scripts/statistics/mad.m: Add 'omitnan' option to mean and median function
calls to enable ignoring NaN input values. Add empty input handling shortcut
codepath. Update docstring to describe new behavior and options 'all' and
vecdim. Add BISTs for added/updated features. Remove dim input validation
BISTs now handled by mean and median.
*/etc/NEWS.9.md: Add entry describing mad.m changes under Matlab
Compatibility section.
author | Nicholas R. Jankowski <jankowski.nicholas@gmail.com> |
---|---|
date | Sun, 09 Apr 2023 23:05:40 -0400 |
parents | e6b24d0d485c |
children | ce36dddf5427 |
comparison
equal
deleted
inserted
replaced
31992:36cf9546a3f7 | 31993:e4bd4349af42 |
---|---|
39 and match expected output behavior for empty (bug #50583) and sparse inputs | 39 and match expected output behavior for empty (bug #50583) and sparse inputs |
40 (bug #63291). Both `median` and `mean` can handle large int values without | 40 (bug #63291). Both `median` and `mean` can handle large int values without |
41 overflow or precision concerns (bug #54567), and `mean` avoids errors due to | 41 overflow or precision concerns (bug #54567), and `mean` avoids errors due to |
42 limits of single precision by processing as doubles (bug #63848). `median` | 42 limits of single precision by processing as doubles (bug #63848). `median` |
43 has also adopted the 'outtype' option from `mean`. | 43 has also adopted the 'outtype' option from `mean`. |
44 | |
45 - `mad` function now produces Matlab compatible output using improved `mean` | |
46 and `median` functions. 'vecdim' and 'all' options are now supported. `mad` | |
47 ignores all NaN values (using 'omitnan' mean/median option) and produces | |
48 expected output behavior for empty inputs. | |
44 | 49 |
45 - `mode` now produces Matlab compatible output for empty inputs (bug #50583). | 50 - `mode` now produces Matlab compatible output for empty inputs (bug #50583). |
46 | 51 |
47 - `cov` now processes the input form cov(x,y) with two separate data arrays | 52 - `cov` now processes the input form cov(x,y) with two separate data arrays |
48 x and y, as cov(x(:),y(:)) to maintain Matlab compatibility. It also accepts | 53 x and y, as cov(x(:),y(:)) to maintain Matlab compatibility. It also accepts |