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

ml-spectra-fitting

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-spectra-fitting - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

7

lib-esm/index.d.ts

@@ -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 @@ };

2

package.json
{
"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

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