X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fpercentiles.c;h=79514eb2504f95d9fd3bfad37c3854aa8fe8c510;hb=f447ebdf19acf26d2d46cee1595e99c3620ee30d;hp=1b4ff136328ecdbe0ba9fb2cd1bff521519d5803;hpb=c2b19a85c1d156d72f1b853bffdcca2c2690e79c;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) {