From: Ben Pfaff Date: Fri, 31 Dec 2021 05:35:13 +0000 (-0800) Subject: moments: Spell out "variance" ("var" is easily confused with "variable"). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=94856572a6a01c1e95282bd5efd0442e6fa1bacc moments: Spell out "variance" ("var" is easily confused with "variable"). --- diff --git a/src/math/moments.c b/src/math/moments.c index ca61a23c72..c00d63650c 100644 --- a/src/math/moments.c +++ b/src/math/moments.c @@ -457,9 +457,9 @@ moments1_destroy (struct moments1 *m) double -calc_semean (double var, double W) +calc_semean (double variance, double W) { - return sqrt (var / W); + return sqrt (variance / W); } /* Returns the standard error of the skewness for the given total diff --git a/src/math/moments.h b/src/math/moments.h index 8bf916592e..79a95f8d63 100644 --- a/src/math/moments.h +++ b/src/math/moments.h @@ -65,7 +65,7 @@ void moments1_calculate (const struct moments1 *, void moments1_destroy (struct moments1 *); /* Standard errors. */ -double calc_semean (double var, double weight); +double calc_semean (double variance, double weight); double calc_seskew (double weight); double calc_sekurt (double weight);