X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fpercentiles.c;h=4b5f9c2f7aba8983c742d38df844227db22e3ae0;hb=df936ae7a823634e599df091f8ae935d7842fbaa;hp=7fec4ce9d5e36871232654ad5e56d04847b351ff;hpb=5d9d2b2ae7d49240f3438e4f3c40ac1f276e31fb;p=pspp-builds.git diff --git a/src/math/percentiles.c b/src/math/percentiles.c index 7fec4ce9..4b5f9c2f 100644 --- a/src/math/percentiles.c +++ b/src/math/percentiles.c @@ -1,7 +1,6 @@ /* PSPP - A program for statistical analysis . -*-c-*- Copyright (C) 2004 Free Software Foundation, Inc. -Author: John Darrington 2004 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -19,18 +18,18 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include +#include #include #include "factor-stats.h" #include "percentiles.h" #include +#include "minmax.h" + #include "gettext.h" #define _(msgid) gettext (msgid) #define N_(msgid) msgid -#include - - struct ptile_params { double g1, g1_star; @@ -337,7 +336,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;