Mercurial > octave
changeset 30616:9c7561dda313 stable
var.m: Eliminate use of deprecated '.-' operator (bug #60882).
* var.m: Replace instance of '.-' with '-'.
(grafted from 9e0421bd8bad210dea6139aa92831c919cb7e405)
author | Rik <rik@octave.org> |
---|---|
date | Thu, 16 Dec 2021 12:50:39 -0800 |
parents | 43ca3f7d6359 |
children | 586262153621 6967a1aadd54 |
files | scripts/statistics/var.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/statistics/var.m Sat Jan 08 12:55:17 2022 +0100 +++ 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