94f41e874645539e2fdcfdbeccae2b5e1d8fd161
[pspp-builds.git] / src / math / group-proc.h
1 /* PSPP - computes sample statistics.
2
3    Copyright (C) 2004 Free Software Foundation, Inc.
4
5
6    This program is free software; you can redistribute it and/or
7    modify it under the terms of the GNU General Public License as
8    published by the Free Software Foundation; either version 2 of the
9    License, or (at your option) any later version.
10
11    This program is distributed in the hope that it will be useful, but
12    WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14    General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19    02110-1301, USA. */
20
21 #ifndef GROUP_DATA_H
22 #define GROUP_DATA_H
23
24 #include "group.h"
25
26 /* private data for commands dealing with grouped data*/
27 struct group_proc
28 {
29   /* Stats for the `universal group'  (ie the totals) */
30   struct group_statistics ugs;
31
32   /* The number of groups */
33   int n_groups;
34
35   /* The levene statistic */
36   double levene ;
37
38   /* A hash of group statistics keyed by the value of the
39      independent variable */
40   struct hsh_table *group_hash;
41
42   /* Mean square error */
43   double mse ;
44
45 };
46
47 struct variable;
48 struct group_proc *group_proc_get (const struct variable *);
49
50 #endif