1cb0ef7b9b0d30efb1837a0ed8ac2a39813c199f
[pspp-builds.git] / src / language / stats / npar.h
1 /* PSPP - computes sample statistics.
2    Copyright (C) 2006 Free Software Foundation, Inc.
3
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.
8
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.
13
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
17    02110-1301, USA. */
18
19 #if !npar_h
20 #define npar_h 1
21
22 typedef struct variable *var_ptr;
23 typedef var_ptr variable_pair[2];
24
25 struct hsh_table;
26 struct casefilter ;
27
28 struct npar_test
29 {
30   void (*execute) (const struct dataset *, 
31                    const struct casefile *, 
32                    struct casefilter *,
33                    const struct npar_test *
34                    );
35
36   void (*insert_variables) (const struct npar_test *, 
37                             struct hsh_table *);
38 };
39
40 struct one_sample_test
41 {
42   struct npar_test parent;
43   struct variable **vars;
44   size_t n_vars;
45 };
46
47 struct two_sample_test
48 {
49   struct npar_test parent;
50   variable_pair *pairs;
51   size_t n_pairs;
52 };
53
54
55 #endif