projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Delete trailing whitespace at end of lines.
[pspp-builds.git]
/
src
/
math
/
histogram.c
diff --git
a/src/math/histogram.c
b/src/math/histogram.c
index c50e9980df71d6349263b36817259bafce892b5b..8c809093335d68a1aad52f0cb3f91e0400508864 100644
(file)
--- a/
src/math/histogram.c
+++ b/
src/math/histogram.c
@@
-36,12
+36,12
@@
histogram_create(double bins, double x_min, double x_max)
bin_width = chart_rounded_tick((x_max - x_min)/ bins);
bin_width_2 = bin_width / 2.0;
bin_width = chart_rounded_tick((x_max - x_min)/ bins);
bin_width_2 = bin_width / 2.0;
-
- n = ceil( x_max / (bin_width_2) ) ;
+
+ n = ceil( x_max / (bin_width_2) ) ;
if ( ! (n % 2 ) ) n++;
upper_limit = n * bin_width_2;
if ( ! (n % 2 ) ) n++;
upper_limit = n * bin_width_2;
- n = floor( x_min / (bin_width_2) ) ;
+ n = floor( x_min / (bin_width_2) ) ;
if ( ! (n % 2 ) ) n--;
lower_limit = n * bin_width_2;
if ( ! (n % 2 ) ) n--;
lower_limit = n * bin_width_2;