comparison etc/NEWS.8.md @ 30997:5330efaf9476

Add optional second output to var and std (bug #62395) * scripts/statistics/var.m: Add optional second output containing the mean used to calculate the variance. Move weight isempty check ahead of vector dimension isscalar check to avoid triggering incompatability error. Add BISTs testing second output with different calling options. Add BIST testing empty value passed as variance weight treated as zero. Add new output behavior to docstring, and update function definitions to show the primary variable. * scripts/statistics/std.m: Add passthrough for second output from var when std called with two outputs. Add BISTs testing second output with different calling options. Update docstring noting new output behavior. * etc/NEWS.8.md: Note output changes to var and std under Matlab Compatability.
author Nicholas R. Jankowski <jankowski.nicholas@gmail.com>
date Thu, 12 May 2022 13:10:52 -0400
parents 4298af839d20
children fef2957c38ec
comparison
equal deleted inserted replaced
30996:4298af839d20 30997:5330efaf9476
34 and `-vector` to specify the "painters" renderer. 34 and `-vector` to specify the "painters" renderer.
35 35
36 - `format` now accepts the option "default", which is equivalent to 36 - `format` now accepts the option "default", which is equivalent to
37 calling `format` without any options to reset the default state. 37 calling `format` without any options to reset the default state.
38 38
39
40 - `quadgk` now stops iterating when `error <= tolerance` while the previous 39 - `quadgk` now stops iterating when `error <= tolerance` while the previous
41 condition was `error < tolerance`. 40 condition was `error < tolerance`.
41
42 - `var` and `std` now optionally output a second argument containing the mean
43 or weighted mean.
42 44
43 ### Alphabetical list of new functions added in Octave 8 45 ### Alphabetical list of new functions added in Octave 8
44 46
45 47
46 ### Deprecated functions, properties, and operators 48 ### Deprecated functions, properties, and operators