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

ml-peak-shape-generator

Package Overview
Dependencies
Maintainers
5
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-peak-shape-generator - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

8

CHANGELOG.md
# Changelog
### [0.10.1](https://www.github.com/mljs/peak-shape-generator/compare/v0.10.0...v0.10.1) (2020-11-16)
### Bug Fixes
* wrong convertion from standard deviation to FWHM ([66f1bd5](https://www.github.com/mljs/peak-shape-generator/commit/66f1bd5be618b8d845b5b31fe5cd570bf708ac38))
* wrong covertion from width between inflectionPointswidth to FWHM ([8d3a658](https://www.github.com/mljs/peak-shape-generator/commit/8d3a6581130769e24a7f10659600f5ff671fdfda))
## [0.10.0](https://www.github.com/mljs/peak-shape-generator/compare/v0.9.0...v0.10.0) (2020-11-12)

@@ -4,0 +12,0 @@

6

lib/index.js

@@ -47,7 +47,7 @@ 'use strict';

case 1:
return Math.sqrt(8 * Math.LN2) * width;
return Math.sqrt(2 * Math.LN2) * width;
case 2:
return width;
case 3:
return width * (mu * (Math.sqrt(8 * Math.LN2) - 1) + 1);
return width * (mu * (Math.sqrt(2 * Math.LN2) - 1) + 1);
default:

@@ -94,3 +94,3 @@ throw new Error(`Unknown shape kind: ${kind}`);

if (sd) {
fwhm = inflectionPointsWidthToFWHM(sd);
fwhm = inflectionPointsWidthToFWHM(2 * sd);
}

@@ -97,0 +97,0 @@

{
"name": "ml-peak-shape-generator",
"version": "0.10.0",
"version": "0.10.1",
"description": "",

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

@@ -27,3 +27,3 @@ import { inflectionPointsWidthToFWHM } from './inflectionPointsWidthToFWHM';

if (sd) {
fwhm = inflectionPointsWidthToFWHM(sd);
fwhm = inflectionPointsWidthToFWHM(2 * sd);
}

@@ -30,0 +30,0 @@

@@ -21,7 +21,7 @@ import { getKind, GAUSSIAN } from './util/getKind';

case 1:
return Math.sqrt(8 * Math.LN2) * width;
return Math.sqrt(2 * Math.LN2) * width;
case 2:
return width;
case 3:
return width * (mu * (Math.sqrt(8 * Math.LN2) - 1) + 1);
return width * (mu * (Math.sqrt(2 * Math.LN2) - 1) + 1);
default:

@@ -28,0 +28,0 @@ throw new Error(`Unknown shape kind: ${kind}`);

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