tdigest
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "tdigest", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "javascript implementation of Dunning's T-Digest for streaming quantile approximation", | ||
@@ -27,3 +27,3 @@ "main": "tdigest.js", | ||
"dependencies": { | ||
"bintrees": "1.0.1" | ||
"bintrees": "1.0.2" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
@@ -20,2 +20,6 @@ tdigest | ||
**changes in 0.1.2:** | ||
Updated the bintree dependency to 1.0.2 to pick up its licencing declaration | ||
**changes in 0.1.1:** | ||
@@ -22,0 +26,0 @@ |
@@ -116,3 +116,2 @@ // | ||
var cumn = 0; | ||
var self = this; | ||
this.centroids.each(function(c) { | ||
@@ -299,4 +298,2 @@ c.mean_cumn = cumn + c.n / 2; // half of n at the mean | ||
this._cumulate(true); // be sure cumns are exact | ||
var min = this.centroids.min(); | ||
var max = this.centroids.max(); | ||
var h = this.n * p; | ||
@@ -303,0 +300,0 @@ var bound = this.bound_mean_cumn(h); |
123
83597
13
1963
+ Addedbintrees@1.0.2(transitive)
- Removedbintrees@1.0.1(transitive)
Updatedbintrees@1.0.2