ml-peak-shape-generator
Advanced tools
Comparing version 0.10.0 to 0.10.1
# 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 @@ |
@@ -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}`); |
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
36243