point-cluster
Advanced tools
Comparing version
{ | ||
"name": "point-cluster", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "Fast nd point clustering.", | ||
@@ -51,2 +51,3 @@ "main": "index.js", | ||
"is-obj": "^1.0.1", | ||
"math-log2": "^1.0.1", | ||
"parse-rect": "^1.2.0" | ||
@@ -53,0 +54,0 @@ }, |
@@ -18,2 +18,3 @@ /** | ||
const dtype = require('dtype') | ||
const log2 = require('math-log2') | ||
@@ -199,4 +200,4 @@ | ||
maxLevel = Math.min( | ||
Math.ceil(-Math.log2(Math.abs(d[0]) / (bounds[2] - bounds[0]))), | ||
Math.ceil(-Math.log2(Math.abs(d[1]) / (bounds[3] - bounds[1]))), | ||
Math.ceil(-log2(Math.abs(d[0]) / (bounds[2] - bounds[0]))), | ||
Math.ceil(-log2(Math.abs(d[1]) / (bounds[3] - bounds[1]))), | ||
maxLevel | ||
@@ -203,0 +204,0 @@ ) |
30653
0.17%716
0.14%10
11.11%+ Added
+ Added