X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fpercentiles.c;h=79514eb2504f95d9fd3bfad37c3854aa8fe8c510;hb=4821381dc228344ea2b879e6c1ce108912fd4e6f;hp=1b4ff136328ecdbe0ba9fb2cd1bff521519d5803;hpb=577f59892bab98f11a056429ddce92e5bb92b6a9;p=pspp diff --git a/src/math/percentiles.c b/src/math/percentiles.c index 1b4ff13632..79514eb250 100644 --- a/src/math/percentiles.c +++ b/src/math/percentiles.c @@ -27,6 +27,7 @@ #include "gl/xalloc.h" +/* Return the value of the percentile. */ double percentile_calculate (const struct percentile *ptl, enum pc_alg alg) { @@ -143,6 +144,9 @@ destroy (struct statistic *stat) } +/* Create the Pth percentile. + W is the total sum of weights in the data set. +*/ struct percentile * percentile_create (double p, double W) {