Skip to content

Commit af5df0e

Browse files
committed
Revert "Merge pull request #25 from mitchellwrosen/master"
This reverts commit db39450, reversing changes made to 9a8e748.
1 parent e21a0e6 commit af5df0e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

cbits/distrib.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ void hs_distrib_add_n(struct distrib* distrib, StgDouble val, StgInt64 n) {
2929
// http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Parallel_algorithm
3030
void hs_distrib_combine(struct distrib* b, struct distrib* a) {
3131
hs_lock(&b->lock);
32-
33-
if (!b->count) {
34-
return;
35-
}
36-
3732
const StgInt64 count = a->count + b->count;
3833
const StgDouble delta = b->mean - a->mean;
3934
const StgDouble mean = (a->count * a->mean + b->count * b->mean) / count;

0 commit comments

Comments
 (0)