1 /* PSPP - computes sample statistics.
2 Copyright (C) 2004 Free Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful, but
10 WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 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, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 #include <data/value.h>
27 /* Statistics for grouped data */
28 struct group_statistics
30 /* The value of the independent variable for this group */
33 /* The arithmetic mean */
36 /* Population std. deviation */
39 /* Sample std. deviation */
53 /* Sum of differences */
56 /* Mean of differences */
59 /* Running total of the Levene for this group */
62 /* Group mean of Levene */
66 /* min and max values */
76 /* These funcs are useful for hash tables */
78 /* Return -1 if the id of a is less than b; +1 if greater than and
80 int compare_group(const struct group_statistics *a,
81 const struct group_statistics *b,
84 unsigned hash_group(const struct group_statistics *g, int width);
86 void free_group(struct group_statistics *v, void *aux);