X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fpercentiles.h;h=86fd641addd46d5e6c3c955e547421a04649cf65;hb=946be4d71e8f4e033dbf3a7bccbea0b7cb94a8b3;hp=0dd09820945e1bafaee5a017ba3756cb4197783b;hpb=b5c82cc9aabe7e641011130240ae1b2e84348e23;p=pspp diff --git a/src/math/percentiles.h b/src/math/percentiles.h index 0dd0982094..86fd641add 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,9 +31,6 @@ enum pc_alg { PC_AEMPIRICAL } ; -extern const char *const ptile_alg_desc[]; - - struct percentile { struct order_stats parent; @@ -47,12 +44,14 @@ struct percentile double g2; double g2_star; + + struct k k[2]; }; /* 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);