Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

error in mode calc

w/o the change mode([1,1,1,2,2,3,3,4,4]) results 4
  • Loading branch information...
commit 75000df81a613d8672464a9a120b22ce167db6d7 1 parent f024923
@lwd8cmd lwd8cmd authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/simple_statistics.js
View
2  src/simple_statistics.js
@@ -551,9 +551,9 @@
// often than the old one
if (seen_this > max_seen) {
max_seen = seen_this;
- seen_this = 1;
value = last;
}
+ seen_this = 1;
last = sorted[i];
// if this isn't a new number, it's one more occurrence of
// the potential mode
Please sign in to comment.
Something went wrong with that request. Please try again.