aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/histogram.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/histogram.c')
-rw-r--r--libcrystfel/src/histogram.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libcrystfel/src/histogram.c b/libcrystfel/src/histogram.c
index ceefbe4b..bd925aea 100644
--- a/libcrystfel/src/histogram.c
+++ b/libcrystfel/src/histogram.c
@@ -167,6 +167,18 @@ static void calc_stddev(Histogram *hi)
}
+int *histogram_get_data(Histogram *hi, double *min, double *max, int *n)
+{
+ calc_bins(hi);
+
+ *n = hi->n_bins;
+ *min = hi->min;
+ *max = hi->max;
+
+ return hi->bins;
+}
+
+
void histogram_show(Histogram *hi)
{
int i;