X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Ftrimmed-mean.c;h=da3d4240e5b232533de6c5c31073b53adda49f48;hb=c6fe58a22249f4f486b42f35fd8bd537c91e8e6e;hp=fa205017bca35a046f01c2156a0e7fe9b3dabc89;hpb=bb611ecc6f1c33a0a7c691785927c545d18696f6;p=pspp-builds.git diff --git a/src/math/trimmed-mean.c b/src/math/trimmed-mean.c index fa205017..da3d4240 100644 --- a/src/math/trimmed-mean.c +++ b/src/math/trimmed-mean.c @@ -77,6 +77,8 @@ trimmed_mean_calculate (const struct trimmed_mean *tm) { const struct order_stats *os = (const struct order_stats *) tm; + assert (os->cc == tm->w); + return ( (os->k[0].cc_p1 - os->k[0].tc) * os->k[0].y_p1