sdbscan
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -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) { |
@@ -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
407
50575