ml-spectra-fitting
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -26,2 +26,7 @@ import { DataXY, DoubleArray } from 'cheminfo-types'; | ||
} | ||
export interface OptimizedPeak { | ||
x: number; | ||
y: number; | ||
shape: Shape1D; | ||
} | ||
declare type OptimizationParameter = number | ((peak: Peak) => number); | ||
@@ -78,3 +83,3 @@ export interface OptimizationOptions { | ||
error: number; | ||
peaks: Peak[]; | ||
peaks: OptimizedPeak[]; | ||
iterations: number; | ||
@@ -81,0 +86,0 @@ }; |
@@ -26,2 +26,7 @@ import { DataXY, DoubleArray } from 'cheminfo-types'; | ||
} | ||
export interface OptimizedPeak { | ||
x: number; | ||
y: number; | ||
shape: Shape1D; | ||
} | ||
declare type OptimizationParameter = number | ((peak: Peak) => number); | ||
@@ -78,3 +83,3 @@ export interface OptimizationOptions { | ||
error: number; | ||
peaks: Peak[]; | ||
peaks: OptimizedPeak[]; | ||
iterations: number; | ||
@@ -81,0 +86,0 @@ }; |
{ | ||
"name": "ml-spectra-fitting", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Fit spectra using gaussian or lorentzian", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -32,2 +32,8 @@ import { DataXY, DoubleArray } from 'cheminfo-types'; | ||
export interface OptimizedPeak { | ||
x: number; | ||
y: number; | ||
shape: Shape1D; | ||
} | ||
type OptimizationParameter = number | ((peak: Peak) => number); | ||
@@ -92,3 +98,3 @@ | ||
error: number; | ||
peaks: Peak[]; | ||
peaks: OptimizedPeak[]; | ||
iterations: number; | ||
@@ -134,3 +140,3 @@ } { | ||
const fittedValues = fitted.parameterValues; | ||
let newPeaks: Peak[] = []; | ||
let newPeaks: OptimizedPeak[] = []; | ||
for (let peak of internalPeaks) { | ||
@@ -137,0 +143,0 @@ const newPeak = { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
99009
1954
0