3907bb26716993de67e369d6aaf837b6d3dc3aaa
[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 const struct variable *var_ptr;
23 typedef var_ptr variable_pair[2];
24
25 struct hsh_table;
26 struct const_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 const_hsh_table *);
39 };
40
41 struct one_sample_test
42 {
43   struct npar_test parent;
44   const 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