Implemented the NPAR TESTS command.
[pspp-builds.git] / src / language / stats / npar.h
1 /* PSPP - computes sample statistics.
2    Copyright (C) 2006 Free Software Foundation, Inc.
3    Written by John Darrington <john@darrington.wattle.id.au>
4
5    This program is free software; you can redistribute it and/or
6    modify it under the terms of the GNU General Public License as
7    published by the Free Software Foundation; either version 2 of the
8    License, or (at your option) any later version.
9
10    This program is distributed in the hope that it will be useful, but
11    WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with this program; if not, write to the Free Software
17    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18    02110-1301, USA. */
19
20 #if !npar_h
21 #define npar_h 1
22
23 typedef struct variable *var_ptr;
24 typedef var_ptr variable_pair[2];
25
26 struct hsh_table;
27 struct casefilter ;
28
29 struct npar_test
30 {
31   void (*execute) (const struct dataset *, 
32                    const struct casefile *, 
33                    struct casefilter *,
34                    const struct npar_test *
35                    );
36
37   void (*insert_variables) (const struct npar_test *, 
38                             struct hsh_table *);
39 };
40
41 struct one_sample_test
42 {
43   struct npar_test parent;
44   struct variable **vars;
45   size_t n_vars;
46 };
47
48 struct two_sample_test
49 {
50   struct npar_test parent;
51   variable_pair *pairs;
52   size_t n_pairs;
53 };
54
55
56 #endif