Comparing version 1.0.2 to 1.0.3
@@ -365,3 +365,3 @@ 'use strict'; | ||
* @param {number} [options.maxIterations = 100] - Maximal number of iterations if the method does not reach the stop criterion | ||
* @param {number} [options.factorCriterion = 0.001] - Factor of the sum of absolute value of original data, to compute stop criterion | ||
* @param {number} [options.tolerance = 0.001] - Factor of the sum of absolute value of original data, to compute stop criterion | ||
* @param {Array<number>} [options.weights = [1,1,...]] - Initial weights vector, default each point has the same weight | ||
@@ -377,3 +377,3 @@ * @param {number} [options.lambda = 100] - Factor of weights matrix in -> [I + lambda D'D]z = x | ||
lambda = 100, | ||
factorCriterion = 0.001, | ||
tolerance = 0.001, | ||
weights = new Array(y.length).fill(1), | ||
@@ -402,4 +402,3 @@ controlPoints = [], | ||
let sumNegDifferences = Number.MAX_SAFE_INTEGER; | ||
let stopCriterion = | ||
factorCriterion * y.reduce((sum, e) => Math.abs(e) + sum, 0); | ||
let stopCriterion = tolerance * y.reduce((sum, e) => Math.abs(e) + sum, 0); | ||
@@ -406,0 +405,0 @@ let { lowerTriangularNonZeros, permutationEncodedArray } = getDeltaMatrix( |
{ | ||
"name": "ml-airpls", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Baseline correction using adaptive iteratively reweighted penalized least", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -11,3 +11,3 @@ import cholesky from './choleskySolver'; | ||
* @param {number} [options.maxIterations = 100] - Maximal number of iterations if the method does not reach the stop criterion | ||
* @param {number} [options.factorCriterion = 0.001] - Factor of the sum of absolute value of original data, to compute stop criterion | ||
* @param {number} [options.tolerance = 0.001] - Factor of the sum of absolute value of original data, to compute stop criterion | ||
* @param {Array<number>} [options.weights = [1,1,...]] - Initial weights vector, default each point has the same weight | ||
@@ -23,3 +23,3 @@ * @param {number} [options.lambda = 100] - Factor of weights matrix in -> [I + lambda D'D]z = x | ||
lambda = 100, | ||
factorCriterion = 0.001, | ||
tolerance = 0.001, | ||
weights = new Array(y.length).fill(1), | ||
@@ -48,4 +48,3 @@ controlPoints = [], | ||
let sumNegDifferences = Number.MAX_SAFE_INTEGER; | ||
let stopCriterion = | ||
factorCriterion * y.reduce((sum, e) => Math.abs(e) + sum, 0); | ||
let stopCriterion = tolerance * y.reduce((sum, e) => Math.abs(e) + sum, 0); | ||
@@ -52,0 +51,0 @@ let { lowerTriangularNonZeros, permutationEncodedArray } = getDeltaMatrix( |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
32541
855