/* PSPP - a program for statistical analysis.
- Copyright (C) 2010 Free Software Foundation, Inc.
+ Copyright (C) 2010, 2011 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
#ifndef AGGREGATE_H
#define AGGREGATE_H
-#include <data/format.h>
-#include <data/val-type.h>
-
#include <stddef.h>
+#include "data/format.h"
+#include "data/val-type.h"
+
enum agr_src_vars
{
AGR_SV_NO,
AGR_SV_OPT
};
+/* Aggregation functions. */
+enum
+ {
+ SUM, MEAN, MEDIAN, SD, MAX, MIN, PGT, PLT, PIN, POUT, FGT, FLT, FIN,
+ FOUT, N, NU, NMISS, NUMISS, FIRST, LAST,
+
+ FUNC = 0x1f, /* Function mask. */
+ FSTRING = 1<<5, /* String function bit. */
+ };
+
/* Attributes of an aggregation function. */
struct agr_func
{