ml-spectra-processing
Advanced tools
Comparing version 10.1.0 to 10.1.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1121993
21821