Mercurial > octave
diff scripts/statistics/var.m @ 30500:9e0421bd8bad
var.m: Eliminate use of deprecated '.-' operator (bug #60882).
* var.m: Replace instance of '.-' with '-'.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 16 Dec 2021 12:50:39 -0800 |
parents | bc0de453fb6a |
children | 83f9f8bda883 |
line wrap: on
line diff
--- a/scripts/statistics/var.m Thu Dec 16 09:53:46 2021 -0800 +++ b/scripts/statistics/var.m Thu Dec 16 12:50:39 2021 -0800 @@ -216,7 +216,7 @@ endif den = sum (w); mu = sum (w .* x, dim) ./ sum (w); - retval = sum (w .* ((x .- mu) .^ 2), dim) / den; + retval = sum (w .* ((x - mu) .^ 2), dim) / den; endif endif endif