/* 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
02110-1301, USA. */
#include <config.h>
-#include "compiler.h"
+#include <assert.h>
+#include <libpspp/compiler.h>
#include "factor-stats.h"
#include "percentiles.h"
-#include "misc.h"
+#include <libpspp/misc.h>
+
+#include "minmax.h"
#include "gettext.h"
#define _(msgid) gettext (msgid)
#define N_(msgid) msgid
-#include <assert.h>
-
-
struct ptile_params
{
double g1, g1_star;
};
-const char *ptile_alg_desc[] = {
+const char *const ptile_alg_desc[] = {
"",
N_("HAverage"),
N_("Weighted Average"),
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;