From 94856572a6a01c1e95282bd5efd0442e6fa1bacc Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 30 Dec 2021 21:35:13 -0800 Subject: [PATCH] moments: Spell out "variance" ("var" is easily confused with "variable"). --- src/math/moments.c | 4 ++-- src/math/moments.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.30.2