Socket
Socket
Sign inDemoInstall

sdbscan

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.1

0

browser.js

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ module.exports = {

@@ -0,0 +0,0 @@ module.exports = function(grunt) {

6

main.js

@@ -56,4 +56,6 @@ const

for(let i=0;i<len;i++) {
if(eudist(data[i].v,p.v,true) <= eps)
ret.push(data[i]);
let np = data[i];
if(np!=p && np.visited) continue;
if(eudist(np.v,p.v,true) <= eps)
ret.push(np);
}

@@ -60,0 +62,0 @@

{
"name": "sdbscan",
"version": "0.3.0",
"version": "0.3.1",
"description": "DBSCAN implementation (density based spatial clustering) for javascript. Works in node and browser",

@@ -5,0 +5,0 @@ "author": "David Gómez Matarrodona <solzimer@gmail.com>",

@@ -0,0 +0,0 @@ # sdbscan

const sdbscan = require("../main.js");
const data = require("./data/random_pts.js");
var res = sdbscan(data,0.7,3);
var res = sdbscan(data,0.75,3);
console.error(JSON.stringify(res,null,2));

@@ -6,0 +6,0 @@

@@ -0,0 +0,0 @@ const sdbscan = require("../main.js");

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc