1 /* PSPP - a program for statistical analysis.
2 Copyright (C) 2004 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
21 #include <data/value.h>
23 /* Statistics for grouped data */
24 struct group_statistics
26 /* The value of the independent variable for this group */
29 /* The arithmetic mean */
32 /* Population std. deviation */
35 /* Sample std. deviation */
49 /* Sum of differences */
52 /* Mean of differences */
55 /* Running total of the Levene for this group */
58 /* Group mean of Levene */
62 /* min and max values */
70 /* These funcs are useful for hash tables */
72 /* Return -1 if the id of a is less than b; +1 if greater than and
74 int compare_group (const void *a,
78 unsigned int hash_group (const void *g, const void *var);
80 void free_group (struct group_statistics *v, void *aux);