592053e039986785d43c3a92aef06a334dff1839
[pspp-builds.git] / src / output / charts / box-whisker.h
1 /* PSPP - computes sample statistics.
2    Copyright (C) 2004 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 #ifndef BOX_WHISKER_H
20 #define BOX_WHISKER_H
21
22 #include <config.h>
23
24 struct chart ;
25 struct weighted_value;
26 struct metrics;
27
28 /* Draw an outlier on the plot CH
29  * at CENTRELINE
30  * The outlier is in (*wvp)[idx]
31  * If EXTREME is non zero, then consider it to be an extreme
32  * value
33  */
34 void  draw_outlier(struct chart *ch, double centreline,
35              struct weighted_value **wvp,
36              int idx,
37              short extreme);
38
39
40 void boxplot_draw_boxplot(struct chart *ch,
41                      double box_centre,
42                      double box_width,
43                      struct metrics *m,
44                      const char *name);
45
46
47 void boxplot_draw_yscale(struct chart *ch , double y_max, double y_min);
48
49 #endif