moments: Spell out "variance" ("var" is easily confused with "variable").
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 31 Dec 2021 05:35:13 +0000 (21:35 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 31 Dec 2021 05:35:26 +0000 (21:35 -0800)
src/math/moments.c
src/math/moments.h

index ca61a23c720e5fa248feb289185b3f623e6e9994..c00d63650cb4540113caba2db52561b2da49237c 100644 (file)
@@ -457,9 +457,9 @@ moments1_destroy (struct moments1 *m)
 \f
 
 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
index 8bf916592e759879a849020a18b20534cc394387..79a95f8d6321e94c3f3c1eaf7346b08eb82a69a5 100644 (file)
@@ -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);