X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fpercentiles.h;h=7af157b230e07adf4c68f01d401eb2ec7e133e45;hb=de786d64f39e8d8c7a3b1d86fbd88ec2d6d19fa6;hp=935584636918c6ae727ba58fdd4e843b56805130;hpb=bb611ecc6f1c33a0a7c691785927c545d18696f6;p=pspp diff --git a/src/math/percentiles.h b/src/math/percentiles.h index 9355846369..7af157b230 100644 --- a/src/math/percentiles.h +++ b/src/math/percentiles.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2004, 2008 Free Software Foundation, Inc. + Copyright (C) 2004, 2008, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -31,14 +31,12 @@ enum pc_alg { PC_AEMPIRICAL } ; -extern const char *const ptile_alg_desc[]; - - struct percentile { struct order_stats parent; double ptile; + double w; /* Mutable */ double g1; @@ -51,7 +49,7 @@ struct percentile /* Create the Pth percentile. W is the total sum of weights in the data set */ -struct order_stats *percentile_create (double p, double W); +struct percentile *percentile_create (double p, double W); /* Return the value of the percentile */ double percentile_calculate (const struct percentile *ptl, enum pc_alg alg);