+ ((struct statistic *)h)->accumulate ((struct statistic *) h, NULL, c, 0, y);
+}
+
+
+
+static void
+acc (struct statistic *s, const struct ccase *cx UNUSED, double c, double cc UNUSED, double y)
+{
+ struct histogram *hist = (struct histogram *) s;
+
+ gsl_histogram_accumulate (hist->gsl_hist, y, c);
+}
+
+
+static void
+destroy (struct statistic *s)
+{
+ struct histogram *h = (struct histogram *) s;
+ gsl_histogram_free (h->gsl_hist);
+ free (s);
+}
+
+
+struct statistic *
+histogram_create (int bins, double min, double max)
+{
+ struct histogram *h = xmalloc (sizeof *h);
+ struct statistic *stat = (struct statistic *) h;