071145dd30987253afd0d2f2d5a108396ae8c2b7
[pspp] / src / output / charts / plot-hist.h
1 /* PSPP - computes sample statistics.
2    Copyright (C) 2004 Free Software Foundation, Inc.
3    Written by John Darrington <john@darrington.wattle.id.au>
4
5    This program is free software; you can redistribute it and/or
6    modify it under the terms of the GNU General Public License as
7    published by the Free Software Foundation; either version 2 of the
8    License, or (at your option) any later version.
9
10    This program is distributed in the hope that it will be useful, but
11    WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with this program; if not, write to the Free Software
17    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18    02110-1301, USA. */
19
20 #ifndef PLOT_HIST_H
21 #define PLOT_HIST_H
22
23 #include <config.h>
24 #include <gsl/gsl_histogram.h>
25
26
27 struct normal_curve
28 {
29   double N ;
30   double mean ;
31   double stddev ;
32 };
33 struct chart;
34
35 /* Write the legend of the chart */
36 void histogram_write_legend(struct chart *ch, const struct normal_curve *norm);
37
38 void histogram_plot(const gsl_histogram *hist,
39                const char *factorname,
40                const struct normal_curve *norm, short show_normal);
41
42
43 #endif