You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

point-cluster

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

point-cluster - npm Package Compare versions

Comparing version

to
3.1.2

README.md

3

package.json
{
"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 @@ )