X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcharts%2Fplot-hist.h;h=74b10bd3cfd98bd3eec5434d3c22ebedfe2295f0;hb=78d55cb38818fa96116f913b72ced33fb3e1c10c;hp=c674aa609fa19968eac8eb0917b2a09933fa058c;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp-builds.git diff --git a/src/output/charts/plot-hist.h b/src/output/charts/plot-hist.h index c674aa60..74b10bd3 100644 --- a/src/output/charts/plot-hist.h +++ b/src/output/charts/plot-hist.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,24 +17,20 @@ #ifndef PLOT_HIST_H #define PLOT_HIST_H -#include -#include +#include - -struct normal_curve -{ - double N ; - double mean ; - double stddev ; -}; struct chart; - -/* Write the legend of the chart */ -void histogram_write_legend(struct chart *ch, const struct normal_curve *norm); - -void histogram_plot(const gsl_histogram *hist, - const char *factorname, - const struct normal_curve *norm, short show_normal); - +struct moments1; +struct histogram; + +/* Plots a histogram of the data in HIST with the given LABEL. + Labels the histogram with each of N, MEAN, and STDDEV that is + not SYSMIS. If all three are not SYSMIS and SHOW_NORMAL is + true, also draws a normal curve on the histogram. */ +void +histogram_plot (const struct histogram *hist, + const char *label, + double n, double mean, double stddev, + bool show_normal); #endif