ml-spectra-processing
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -0,1 +1,14 @@ | ||
# [0.6.0](https://github.com/cheminfo/spectra-processing/compare/v0.4.0...v0.6.0) (2019-11-13) | ||
### Features | ||
* add correlation ([dd6569c](https://github.com/cheminfo/spectra-processing/commit/dd6569c973efc17d437b31f338219c3ecb1da0f8)) | ||
* add maximaY ([e2cfa9b](https://github.com/cheminfo/spectra-processing/commit/e2cfa9b9c05f1a62975a322613b15d032f09a481)) | ||
* add peakInfo ([c76bfe6](https://github.com/cheminfo/spectra-processing/commit/c76bfe6a526e26cc0231d0eddcf378a65b7c9c7e)) | ||
* add XY minimaY and maximaY ([a2cff7f](https://github.com/cheminfo/spectra-processing/commit/a2cff7f30e42e33e38c658758c78eb87d4fdcaf7)) | ||
* invert from / to if required ([d99ef8e](https://github.com/cheminfo/spectra-processing/commit/d99ef8e0dbc044eae46ee302007d8d497e0589c9)) | ||
# [0.4.0](https://github.com/cheminfo/spectra-processing/compare/v0.3.0...v0.4.0) (2019-10-01) | ||
@@ -2,0 +15,0 @@ |
@@ -79,2 +79,3 @@ 'use strict'; | ||
} | ||
if (fromIndex > toIndex) [fromIndex, toIndex] = [toIndex, fromIndex]; | ||
return { fromIndex, toIndex }; | ||
@@ -699,3 +700,3 @@ } | ||
zeroFilling, | ||
sortX: sortX$1, | ||
sortX: sortX$1 | ||
}; | ||
@@ -723,4 +724,4 @@ | ||
* @param {object} reim - An object of kind {re:[], im:[]} | ||
* @param {number} [phi0 = 0] - value | ||
* @param {number} [phi1 = 0] - value | ||
* @param {number} [phi0 = 0] - Angle in radians for zero order phase correction | ||
* @param {number} [phi1 = 0] - Angle in radians for first order phase correction | ||
* @return {object} returns a new object {re:[], im:[]} | ||
@@ -732,4 +733,4 @@ */ | ||
const re = data.re.slice(0); | ||
const im = data.im.slice(0); | ||
const re = data.re; | ||
const im = data.im; | ||
const length = data.re.length; | ||
@@ -758,3 +759,3 @@ | ||
absolute, | ||
phaseCorrection, | ||
phaseCorrection | ||
}; | ||
@@ -761,0 +762,0 @@ |
{ | ||
"name": "ml-spectra-processing", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Various method to process spectra", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -6,3 +6,3 @@ import { absolute } from './absolute'; | ||
absolute, | ||
phaseCorrection, | ||
phaseCorrection | ||
}; |
/** | ||
* Phase correction filter | ||
* @param {object} reim - An object of kind {re:[], im:[]} | ||
* @param {number} [phi0 = 0] - value | ||
* @param {number} [phi1 = 0] - value | ||
* @param {number} [phi0 = 0] - Angle in radians for zero order phase correction | ||
* @param {number} [phi1 = 0] - Angle in radians for first order phase correction | ||
* @return {object} returns a new object {re:[], im:[]} | ||
@@ -12,4 +12,4 @@ */ | ||
const re = data.re.slice(0); | ||
const im = data.im.slice(0); | ||
const re = data.re; | ||
const im = data.im; | ||
const length = data.re.length; | ||
@@ -16,0 +16,0 @@ |
@@ -30,3 +30,4 @@ import { findClosestIndex } from './findClosestIndex'; | ||
} | ||
if (fromIndex > toIndex) [fromIndex, toIndex] = [toIndex, fromIndex]; | ||
return { fromIndex, toIndex }; | ||
} |
import { zeroFilling } from './zeroFilling'; | ||
import { sortX } from './sortX'; | ||
export const XReIm = { | ||
zeroFilling, | ||
sortX, | ||
sortX | ||
}; |
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
62926
1809