projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Histogram calculations: Use integer arithmetic
[pspp]
/
src
/
math
/
trimmed-mean.c
diff --git
a/src/math/trimmed-mean.c
b/src/math/trimmed-mean.c
index 5e48689626817ddf59ad46363a17e1d0e763084d..b985125295f9754d1ffec7c6b751c02e08425516 100644
(file)
--- a/
src/math/trimmed-mean.c
+++ b/
src/math/trimmed-mean.c
@@
-57,7
+57,7
@@
trimmed_mean_create (double W, double tail)
struct statistic *stat = &os->parent;
os->n_k = 2;
- os->k = xcalloc (
sizeof (*os->k), 2
);
+ os->k = xcalloc (
2, sizeof (*os->k)
);
assert (tail >= 0);
assert (tail <= 1);