From 86a7e6293671fc0f384b5f9a92c93b79688508b8 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 17 Feb 2014 16:02:52 +0100 Subject: Add histogram_{set,get}_{min,max} --- libcrystfel/src/histogram.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'libcrystfel/src/histogram.c') diff --git a/libcrystfel/src/histogram.c b/libcrystfel/src/histogram.c index bd925aea..872c5dca 100644 --- a/libcrystfel/src/histogram.c +++ b/libcrystfel/src/histogram.c @@ -244,3 +244,33 @@ void histogram_show(Histogram *hi) free(bins); } + + +double histogram_get_min(Histogram *hi) +{ + return hi->min; +} + + +double histogram_get_max(Histogram *hi) +{ + return hi->max; +} + + +void histogram_set_min(Histogram *hi, double min) +{ + hi->min = min; +} + + +void histogram_set_max(Histogram *hi, double max) +{ + hi->max = max; +} + + +void histogram_set_num_bins(Histogram *hi, int n) +{ + hi->n_bins = n; +} -- cgit v1.2.3