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

ml-spectra-processing

Package Overview
Dependencies
Maintainers
6
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-spectra-processing - npm Package Compare versions

Comparing version 5.1.0 to 5.2.0

src/x/xMeanAbsoluteError.js

8

CHANGELOG.md
# Changelog
## [5.2.0](https://www.github.com/mljs/spectra-processing/compare/v5.1.0...v5.2.0) (2021-02-10)
### Features
* added rollingMax, rollingMin ([#48](https://www.github.com/mljs/spectra-processing/issues/48)) ([083ca2c](https://www.github.com/mljs/spectra-processing/commit/083ca2c24a1364dd5fee1f310ee3624192704326))
* implemented mae and mse ([#50](https://www.github.com/mljs/spectra-processing/issues/50)) ([5cabd0a](https://www.github.com/mljs/spectra-processing/commit/5cabd0a9c2c65b5b71d949bd47bd8a023a57715f))
## [5.1.0](https://www.github.com/mljs/spectra-processing/compare/v5.0.0...v5.1.0) (2021-01-19)

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

18

package.json
{
"name": "ml-spectra-processing",
"version": "5.1.0",
"version": "5.2.0",
"description": "Various method to process spectra",

@@ -23,3 +23,3 @@ "main": "lib/index.js",

"type": "git",
"url": "git+https://github.com/cheminfo/spectra-processing.git"
"url": "git+https://github.com/mljs/spectra-processing.git"
},

@@ -30,5 +30,5 @@ "keywords": [],

"bugs": {
"url": "https://github.com/cheminfo/spectra-processing/issues"
"url": "https://github.com/mljs/spectra-processing/issues"
},
"homepage": "https://github.com/cheminfo/spectra-processing#readme",
"homepage": "https://github.com/mljs/spectra-processing#readme",
"jest": {

@@ -45,6 +45,6 @@ "testEnvironment": "node"

"devDependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.12.1",
"@babel/plugin-transform-modules-commonjs": "^7.12.13",
"@types/jest": "^26.0.20",
"cheminfo-build": "^1.1.9",
"eslint": "^7.18.0",
"eslint": "^7.19.0",
"eslint-config-cheminfo": "^5.2.2",

@@ -55,3 +55,3 @@ "esm": "^3.2.25",

"prettier": "^2.2.1",
"rollup": "^2.36.2"
"rollup": "^2.38.5"
},

@@ -61,6 +61,8 @@ "dependencies": {

"is-any-array": "0.1.0",
"ml-array-max": "^1.2.0",
"ml-array-mean": "^1.1.4",
"ml-array-median": "^1.1.4",
"ml-array-min": "^1.2.0",
"ml-array-standard-deviation": "^1.1.5",
"ml-gsd": "^6.5.0",
"ml-gsd": "^6.6.0",
"ml-matrix": "^6.6.0",

@@ -67,0 +69,0 @@ "spline-interpolator": "^1.0.0"

@@ -54,4 +54,8 @@ /**

export * from './x/xRollingMedian';
export * from './x/xRollingMin';
export * from './x/xRollingMax';
export * from './x/xSubtract';
export * from './x/xSum';
export * from './x/xMeanAbsoluteError';
export * from './x/xMeanSquaredError';

@@ -58,0 +62,0 @@ export * from './reim/reimAbsolute';

@@ -17,1 +17,7 @@ import isArray from 'is-any-array';

}
export function xCheckLengths(array1, array2) {
if (array1.length !== array2.length) {
throw new TypeError('Length of array1 and array2 must be identical');
}
}

@@ -7,5 +7,11 @@ import SplineInterpolator from 'spline-interpolator';

/**
* Determine noise level by san plot metodology (https://doi.org/10.1002/mrc.4882)
* Determine noise level by san plot methodology (https://doi.org/10.1002/mrc.4882)
* @param {Array} data - real or magnitude spectra data.
* @param {*} options
* @param {object} [options = {}]
* @param {array} [options.mask] - boolean array to filter data, if the i-th element is true then the i-th element of the distribution will be ignored.
* @param {number} [options.scaleFactor=1] - factor to scale the data input[i]*=scaleFactor.
* @param {number} [options.cutOff] - percent of positive signal distribution where the noise level will be determined, if it is not defined the program calculate it.
* @param {number} [options.factorStd=5] - factor times std to determine what will be marked as signals.
* @param {boolean} [options.refine=true] - if true the noise level will be recalculated get out the signals using factorStd.
* @param {boolean} [options.fixOffset=true] - If the baseline is correct, the midpoint of distribution should be zero. if true, the distribution will be centered.
*/

@@ -12,0 +18,0 @@

Sorry, the diff of this file is too big to display

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