6cf627a2b4171cebd34891684fe4de98da84c51f
[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 #include <stddef.h>
23 #include <data/missing-values.h>
24
25 #include <stddef.h>
26 #include <data/missing-values.h>
27
28 typedef const struct variable *variable_pair[2];
29
30 struct hsh_table;
31 struct const_hsh_table;
32 struct casefilter;
33 struct casereader;
34 struct dataset;
35
36 struct npar_test
37 {
38   void (*execute) (const struct dataset *,
39                    struct casereader *,
40                    enum mv_class exclude,
41                    const struct npar_test *
42                    );
43
44   void (*insert_variables) (const struct npar_test *,
45                             struct const_hsh_table *);
46 };
47
48 struct one_sample_test
49 {
50   struct npar_test parent;
51   const struct variable **vars;
52   size_t n_vars;
53 };
54
55 struct two_sample_test
56 {
57   struct npar_test parent;
58   variable_pair *pairs;
59   size_t n_pairs;
60 };
61
62
63 #endif