X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Faggregate.h;h=8cddbcfa574120a20d326732079f3f849f070e34;hb=81579d9e9f994fb2908f50af41c3eb033d216e58;hp=95e574a0975e00762f38163b4ae75c26cbc3b57c;hpb=0eac9417b290d8373839cf72011fc86f5193741a;p=pspp-builds.git diff --git a/src/language/stats/aggregate.h b/src/language/stats/aggregate.h index 95e574a0..8cddbcfa 100644 --- a/src/language/stats/aggregate.h +++ b/src/language/stats/aggregate.h @@ -1,5 +1,5 @@ /* 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 @@ -18,11 +18,11 @@ #ifndef AGGREGATE_H #define AGGREGATE_H -#include -#include - #include +#include "data/format.h" +#include "data/val-type.h" + enum agr_src_vars { AGR_SV_NO, @@ -30,6 +30,16 @@ enum agr_src_vars 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 {