711fa51f4706f829c8273af7a3705d232ca969a0
[pspp-builds.git] / src / output / charts / plot-hist.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 PLOT_HIST_H
20 #define PLOT_HIST_H
21
22 #include <config.h>
23 #include <gsl/gsl_histogram.h>
24
25
26 struct normal_curve
27 {
28   double N ;
29   double mean ;
30   double stddev ;
31 };
32 struct chart;
33
34 /* Write the legend of the chart */
35 void histogram_write_legend(struct chart *ch, const struct normal_curve *norm);
36
37 void histogram_plot(const gsl_histogram *hist,
38                const char *factorname,
39                const struct normal_curve *norm, short show_normal);
40
41
42 #endif