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/>. */
22 #include <data/value.h>
25 /* Statistics for grouped data */
26 struct group_statistics
28 /* The value of the independent variable for this group */
31 /* The arithmetic mean */
34 /* Population std. deviation */
37 /* Sample std. deviation */
51 /* Sum of differences */
54 /* Mean of differences */
57 /* Running total of the Levene for this group */
60 /* Group mean of Levene */
64 /* min and max values */
72 /* These funcs are useful for hash tables */
74 /* Return -1 if the id of a is less than b; +1 if greater than and
76 int compare_group (const struct group_statistics *a,
77 const struct group_statistics *b,
80 unsigned hash_group (const struct group_statistics *g, int width);
82 void free_group (struct group_statistics *v, void *aux);