Release PSPP version 1.4.0.
[pspp.git] / src / math / order-stats.h
blob03011ea32c4116a3045e45a61e532c7dfa57bd87
1 /* PSPP - a program for statistical analysis.
2 Copyright (C) 2004, 2008, 2011 Free Software Foundation, Inc.
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.
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.
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/>. */
17 #ifndef __ORDER_STATS_H__
18 #define __ORDER_STATS_H__
20 #include <stddef.h>
21 #include "data/missing-values.h"
22 #include "math/statistic.h"
24 struct casereader;
25 struct variable;
28 cc <= tc < cc_p1
30 struct k
32 double tc;
33 double cc;
34 double cc_p1;
35 double c;
36 double c_p1;
37 double y;
38 double y_p1;
42 struct order_stats
44 struct statistic parent;
45 int n_k;
46 struct k *k;
48 double cc;
51 enum mv_class;
53 void order_stats_dump (const struct order_stats *os);
55 void
56 order_stats_accumulate_idx (struct order_stats **os, size_t nos,
57 struct casereader *reader,
58 int wt_idx,
59 int val_idx);
62 void order_stats_accumulate (struct order_stats **ptl, size_t nos,
63 struct casereader *reader,
64 const struct variable *wv,
65 const struct variable *var,
66 enum mv_class exclude);
68 #endif