X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fpercentiles.c;h=b72a98a1261778ae24fa372e09bdbddb87db8adc;hb=a86909a07716f0d1d2452acb6558e7bd190d0f4a;hp=372bd4ca08bfd2dedc38c116e3f3cdf11c5da41d;hpb=2322678e8fddbbf158b01b2720db2636404bba3b;p=pspp-builds.git diff --git a/src/math/percentiles.c b/src/math/percentiles.c index 372bd4ca..b72a98a1 100644 --- a/src/math/percentiles.c +++ b/src/math/percentiles.c @@ -19,18 +19,18 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include -#include "compiler.h" +#include +#include #include "factor-stats.h" #include "percentiles.h" -#include "misc.h" +#include + +#include "minmax.h" #include "gettext.h" #define _(msgid) gettext (msgid) #define N_(msgid) msgid -#include - - struct ptile_params { double g1, g1_star; @@ -39,7 +39,7 @@ struct ptile_params }; -const char *ptile_alg_desc[] = { +const char *const ptile_alg_desc[] = { "", N_("HAverage"), N_("Weighted Average"), @@ -337,7 +337,7 @@ tukey_hinges(const struct weighted_value **wv, for ( i = 0 ; i < n_data ; ++i ) { - c_star = min(c_star, wv[i]->w); + c_star = MIN(c_star, wv[i]->w); } if ( c_star > 1 ) c_star = 1;