X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcharts%2Fplot-hist.h;h=606206d5012c47d4e7b239e0a0230bf1788cea8e;hb=b5c82cc9aabe7e641011130240ae1b2e84348e23;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..606206d5 100644 --- a/src/output/charts/plot-hist.h +++ b/src/output/charts/plot-hist.h @@ -17,24 +17,23 @@ #ifndef PLOT_HIST_H #define PLOT_HIST_H -#include -#include +#include - -struct normal_curve -{ - double N ; - double mean ; - double stddev ; -}; struct chart; +struct moments1; +struct histogram; + +/* Plot M onto histogram HIST and label it with LABEL */ +void histogram_plot (const struct histogram *hist, + const char *label, const struct moments1 *m); -/* 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); +/* A wrapper aroud histogram_plot. + Don't use this function. It's legacy only */ +void histogram_plot_n (const struct histogram *hist, + const char *label, + double n, double mean, double var, + bool show_normal); #endif