X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fgroup.h;h=1e0b26724d0d2dc559966deb6b94c7984f7b7a3c;hb=81579d9e9f994fb2908f50af41c3eb033d216e58;hp=1967e6550c45365264bb8832d1cd3bff1a530bec;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp-builds.git diff --git a/src/math/group.h b/src/math/group.h index 1967e655..1e0b2672 100644 --- a/src/math/group.h +++ b/src/math/group.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 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,9 +18,7 @@ #ifndef GROUP_H #define GROUP_H - -#include - +#include "data/value.h" /* Statistics for grouped data */ struct group_statistics @@ -64,25 +62,11 @@ struct group_statistics /* min and max values */ double minimum ; double maximum ; - - }; +struct variable ; - -/* These funcs are useful for hash tables */ - -/* Return -1 if the id of a is less than b; +1 if greater than and - 0 if equal */ -int compare_group(const struct group_statistics *a, - const struct group_statistics *b, - int width); - -unsigned hash_group(const struct group_statistics *g, int width); - -void free_group(struct group_statistics *v, void *aux); - - +void free_group (struct group_statistics *v, void *aux); #endif