aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/histogram.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-02-18 16:08:00 +0100
committerThomas White <taw@physics.org>2014-02-18 16:08:00 +0100
commit75fe0fea66536a25f70e89d730ee62d3580a62ac (patch)
tree7c6a5ba6101de65b565d1bb8048bb7feab8d4d9a /libcrystfel/src/histogram.c
parent72e660a608a8b8971a36c16c8f442bce8002fb12 (diff)
Tweak histogram_get_data()
Diffstat (limited to 'libcrystfel/src/histogram.c')
-rw-r--r--libcrystfel/src/histogram.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/libcrystfel/src/histogram.c b/libcrystfel/src/histogram.c
index 026bf43e..39f034d6 100644
--- a/libcrystfel/src/histogram.c
+++ b/libcrystfel/src/histogram.c
@@ -3,11 +3,11 @@
*
* Quick histogram functions
*
- * Copyright © 2013 Deutsches Elektronen-Synchrotron DESY,
- * a research centre of the Helmholtz Association.
+ * Copyright © 2013-2014 Deutsches Elektronen-Synchrotron DESY,
+ * a research centre of the Helmholtz Association.
*
* Authors:
- * 2013 Thomas White <taw@physics.org>
+ * 2013-2014 Thomas White <taw@physics.org>
*
* This file is part of CrystFEL.
*
@@ -167,14 +167,10 @@ static void calc_stddev(Histogram *hi)
}
-int *histogram_get_data(Histogram *hi, double *min, double *max, int *n)
+int *histogram_get_data(Histogram *hi, int *n)
{
calc_bins(hi);
-
*n = hi->n_bins;
- *min = hi->min;
- *max = hi->max;
-
return hi->bins;
}