changeset 31366:d727bda73574

normalize.m: Remove redundant calculation from 1-input case * Remove the output calculation line from the simple 1-input code path that also is performed at the end of the function and was being performed twice.
author Nicholas R. Jankowski <jankowski.nicholas@gmail.com>
date Sat, 29 Oct 2022 23:42:18 -0400
parents e4a52cb9ce41
children a448b8a0ffff
files scripts/statistics/normalize.m
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/statistics/normalize.m	Sat Oct 29 18:28:07 2022 -0700
+++ b/scripts/statistics/normalize.m	Sat Oct 29 23:42:18 2022 -0400
@@ -187,7 +187,6 @@
   if (nargin == 1)
     ## Directly handle simple 1 input case.
     [s, c] = std (x);
-    z = (x - c) ./ s;
 
   else
     ## Parse input options