diff options
author | Thomas White <taw@physics.org> | 2014-02-18 16:08:00 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-02-18 16:08:00 +0100 |
commit | 75fe0fea66536a25f70e89d730ee62d3580a62ac (patch) | |
tree | 7c6a5ba6101de65b565d1bb8048bb7feab8d4d9a /libcrystfel/src | |
parent | 72e660a608a8b8971a36c16c8f442bce8002fb12 (diff) |
Tweak histogram_get_data()
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/histogram.c | 12 | ||||
-rw-r--r-- | libcrystfel/src/histogram.h | 2 |
2 files changed, 5 insertions, 9 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; } diff --git a/libcrystfel/src/histogram.h b/libcrystfel/src/histogram.h index 1b6f6bb0..815c2f76 100644 --- a/libcrystfel/src/histogram.h +++ b/libcrystfel/src/histogram.h @@ -41,7 +41,7 @@ extern void histogram_free(Histogram *hi); extern void histogram_add_value(Histogram *hi, double val); extern void histogram_show(Histogram *hi); -extern int *histogram_get_data(Histogram *hi, double *min, double *max, int *n); +extern int *histogram_get_data(Histogram *hi, int *n); extern double histogram_get_min(Histogram *hi); extern double histogram_get_max(Histogram *hi); extern int histogram_get_num_bins(Histogram *hi); |