diff 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
line wrap: on
line diff
--- a/etc/NEWS.8.md	Wed May 11 12:14:08 2022 -0700
+++ b/etc/NEWS.8.md	Thu May 12 13:10:52 2022 -0400
@@ -36,10 +36,12 @@
 - `format` now accepts the option "default", which is equivalent to
   calling `format` without any options to reset the default state.
 
-
 - `quadgk` now stops iterating when `error <= tolerance` while the previous
   condition was `error < tolerance`.
 
+- `var` and `std` now optionally output a second argument containing the mean
+  or weighted mean.
+
 ### Alphabetical list of new functions added in Octave 8