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