Update all #include directives to the currently preferred style.
[pspp-builds.git] / src / math / order-stats.h
1 /* PSPP - a program for statistical analysis.
2    Copyright (C) 2004, 2008, 2011 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 #ifndef __ORDER_STATS_H__
18 #define __ORDER_STATS_H__
19
20 #include <stddef.h>
21 #include "data/missing-values.h"
22 #include "math/statistic.h"
23
24 struct casereader;
25 struct variable;
26
27 /*
28   cc <= tc < cc_p1
29 */
30 struct k
31 {
32   double tc;
33   double cc;
34   double cc_p1;
35   double c;
36   double c_p1;
37   double y;
38   double y_p1;
39 };
40
41
42 struct order_stats
43 {
44   struct statistic parent;
45   int n_k;
46   struct k *k;
47
48   double cc;
49 };
50
51 enum mv_class;
52
53 void order_stats_dump (const struct order_stats *os);
54
55 void order_stats_accumulate (struct order_stats **ptl, size_t nos,
56                              struct casereader *reader,
57                              const struct variable *wv,
58                              const struct variable *var,
59                              enum mv_class exclude);
60
61 #endif