Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ml-matrix-peaks-finder

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-matrix-peaks-finder - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

2

package.json
{
"name": "ml-matrix-peaks-finder",
"version": "0.1.0",
"version": "0.2.0",
"description": "The peak picking routines for 2D arrays. This library looks for the local maxima of the given input matrix. The input matrix has to be specified as a single vector.",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

@@ -0,1 +1,3 @@

'use strict'
const DisjointSet = require('ml-disjoint-set');

@@ -34,3 +36,3 @@

const linked = new DisjointSet();
var index;
var currentLabel = 1;

@@ -41,3 +43,3 @@ for (var j = 0; j < height; j++) {

var smallestNeighbor = null;
const index = i + j * width;
index = i + j * width;

@@ -76,3 +78,3 @@ if (mask[index]) {

for (var i = 0; i < width; i++) {
const index = i + j * width;
index = i + j * width;
if (mask[index]) {

@@ -79,0 +81,0 @@ pixels[index] = linked.find(labels[index]).value;

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc