X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fmoments.c;fp=src%2Fmath%2Fmoments.c;h=83cbbe4ca1fb3e4c2d4e2a6497ed84ced68b0c31;hb=e03970503d5ba427ada341596db8e55f5cd91fad;hp=e289e8aec0ef27c2372e2c007eeb30e6b2f6d469;hpb=afcd7961919d0e2d3d8ecd240a14ace4a201e8d3;p=pspp diff --git a/src/math/moments.c b/src/math/moments.c index e289e8aec0..83cbbe4ca1 100644 --- a/src/math/moments.c +++ b/src/math/moments.c @@ -461,6 +461,13 @@ moments1_destroy (struct moments1 *m) free (m); } + +double +calc_semean (double var, double W) +{ + return sqrt (var / W); +} + /* Returns the standard error of the skewness for the given total weight W.