changeset 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 9eee1d667949
children 6e8a4dacc014
files scripts/statistics/var.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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