#include "gl/xalloc.h"
-#include "gettext.h"
-#define _(msgid) gettext (msgid)
-#define N_(msgid) msgid
-
-const char *const ptile_alg_desc[] = {
- "",
- N_("HAverage"),
- N_("Weighted Average"),
- N_("Rounded"),
- N_("Empirical"),
- N_("Empirical with averaging")
-};
-
-
-
double
percentile_calculate (const struct percentile *ptl, enum pc_alg alg)
{
struct percentile *
percentile_create (double p, double W)
{
- struct percentile *ptl = xzalloc (sizeof (*ptl));
+ struct percentile *ptl = XZALLOC (struct percentile);
struct order_stats *os = &ptl->parent;
struct statistic *stat = &os->parent;