b50afde3837f818e8f5a74acd37de948b4a28413
[pspp-builds.git] / src / language / stats / runs.h
1 /* PSPP - a program for statistical analysis.
2    Copyright (C) 2006 Free Software Foundation, Inc.
3
4    This program is free software: you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation, either version 3 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU 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, see <http://www.gnu.org/licenses/>. */
16
17 #if !runs_h
18 #define runs_h 1
19
20 #include <stddef.h>
21 #include <stdbool.h>
22 #include <language/stats/npar.h>
23
24 enum cp_mode
25   {
26     CP_MEAN,
27     CP_MEDIAN,
28     CP_MODE,
29     CP_CUSTOM
30   };
31
32
33 struct runs_test
34 {
35   struct one_sample_test parent;
36
37   double cutpoint;
38
39   enum cp_mode cp_mode;
40 };
41
42
43 void runs_execute (const struct dataset *ds,
44                         struct casereader *input,
45                         enum mv_class exclude,
46                         const struct npar_test *test,
47                         bool,
48                    double);
49
50
51 #endif