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

ml-spectra-processing

Package Overview
Dependencies
Maintainers
6
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-spectra-processing - npm Package Compare versions

Comparing version 10.1.0 to 10.1.1

4

lib-esm/xy/xyReduce.js

@@ -90,4 +90,2 @@ import { xFindClosestIndex } from '../x/xFindClosestIndex';

newY.push(y[fromIndex]);
let minY = Number.MAX_VALUE;
let xyMaxY = Number.MIN_VALUE;
if (zoneNbPoints % 2 === 0) {

@@ -104,2 +102,4 @@ zoneNbPoints = zoneNbPoints / 2 + 1;

let first = true;
let minY = Number.POSITIVE_INFINITY;
let xyMaxY = Number.NEGATIVE_INFINITY;
for (let i = fromIndex + 1; i <= toIndex; i++) {

@@ -106,0 +106,0 @@ if (first) {

@@ -13,3 +13,3 @@ /**

let current = {
x: Number.MIN_VALUE,
x: Number.NEGATIVE_INFINITY,
y: 0,

@@ -16,0 +16,0 @@ };

@@ -36,3 +36,5 @@ /**

if (zone.from <= currentZone.to) {
currentZone.to = zone.to;
if (currentZone.to < zone.to) {
currentZone.to = zone.to;
}
}

@@ -39,0 +41,0 @@ else {

@@ -93,4 +93,2 @@ "use strict";

newY.push(y[fromIndex]);
let minY = Number.MAX_VALUE;
let xyMaxY = Number.MIN_VALUE;
if (zoneNbPoints % 2 === 0) {

@@ -107,2 +105,4 @@ zoneNbPoints = zoneNbPoints / 2 + 1;

let first = true;
let minY = Number.POSITIVE_INFINITY;
let xyMaxY = Number.NEGATIVE_INFINITY;
for (let i = fromIndex + 1; i <= toIndex; i++) {

@@ -109,0 +109,0 @@ if (first) {

@@ -16,3 +16,3 @@ "use strict";

let current = {
x: Number.MIN_VALUE,
x: Number.NEGATIVE_INFINITY,
y: 0,

@@ -19,0 +19,0 @@ };

@@ -39,3 +39,5 @@ "use strict";

if (zone.from <= currentZone.to) {
currentZone.to = zone.to;
if (currentZone.to < zone.to) {
currentZone.to = zone.to;
}
}

@@ -42,0 +44,0 @@ else {

{
"name": "ml-spectra-processing",
"version": "10.1.0",
"version": "10.1.1",
"description": "Various method to process spectra",

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

@@ -138,4 +138,2 @@ import { DataXY } from 'cheminfo-types';

newY.push(y[fromIndex]);
let minY = Number.MAX_VALUE;
let xyMaxY = Number.MIN_VALUE;
if (zoneNbPoints % 2 === 0) {

@@ -152,2 +150,4 @@ zoneNbPoints = zoneNbPoints / 2 + 1;

let first = true;
let minY = Number.POSITIVE_INFINITY;
let xyMaxY = Number.NEGATIVE_INFINITY;
for (let i = fromIndex + 1; i <= toIndex; i++) {

@@ -154,0 +154,0 @@ if (first) {

@@ -25,3 +25,3 @@ import { Point } from '..';

let current: Point = {
x: Number.MIN_VALUE,
x: Number.NEGATIVE_INFINITY,
y: 0,

@@ -28,0 +28,0 @@ };

@@ -55,3 +55,5 @@ /**

if (zone.from <= currentZone.to) {
currentZone.to = zone.to;
if (currentZone.to < zone.to) {
currentZone.to = zone.to;
}
} else {

@@ -58,0 +60,0 @@ currentZone = zone;

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

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

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc