🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ml-airpls

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-airpls - npm Package Compare versions

Comparing version

to
1.0.2

ml-airpls.d.ts

10

lib/index.js

@@ -5,6 +5,2 @@ 'use strict';

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var cuthillMckee__default = /*#__PURE__*/_interopDefaultLegacy(cuthillMckee);
// Based on https://github.com/scijs/cholesky-solve

@@ -151,2 +147,3 @@

}
function ldlDsolve(

@@ -162,2 +159,3 @@ n /* D is n-by-n, where n >= 0 */,

}
function ldlLTsolve(

@@ -297,3 +295,3 @@ n /* L is n-by-n, where n >= 0 */,

if (d === n) {
return function (b) {
return (b) => {
ldlPerm(n, bp1, b, P);

@@ -360,3 +358,3 @@ ldlLsolve(n, bp1, Lp, Li, Lx);

lowerTriangularNonZeros: matrix,
permutationEncodedArray: cuthillMckee__default['default'](matrix, nbPoints),
permutationEncodedArray: cuthillMckee(matrix, nbPoints),
};

@@ -363,0 +361,0 @@ };

30

package.json
{
"name": "ml-airpls",
"version": "1.0.0",
"version": "1.0.2",
"description": "Baseline correction using adaptive iteratively reweighted penalized least",
"main": "lib/index.js",
"types": "ml-airpls.d.ts",
"module": "src/index.js",
"files": [
"lib",
"src"
"src",
"ml-airpls.d.ts"
],

@@ -16,5 +18,6 @@ "scripts": {

"eslint-fix": "npm run eslint -- --fix",
"test": "npm run test-coverage && npm run eslint",
"test-coverage": "jest --coverage",
"test-only": "jest"
"prettier": "prettier --check src",
"prettier-write": "prettier --write src",
"test": "npm run test-only && npm run eslint && npm run prettier",
"test-only": "jest --coverage"
},

@@ -35,13 +38,10 @@ "repository": {

"homepage": "https://github.com/mljs/airpls#readme",
"jest": {
"testEnvironment": "node"
},
"devDependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.13.8",
"eslint": "^7.22.0",
"eslint-config-cheminfo": "^5.2.3",
"jest": "^26.6.3",
"jest-matcher-deep-close-to": "^2.0.1",
"prettier": "^2.2.1",
"rollup": "^2.42.4"
"@babel/plugin-transform-modules-commonjs": "^7.16.8",
"eslint": "^8.10.0",
"eslint-config-cheminfo": "^8.0.2",
"jest": "^29.5.0",
"jest-matcher-deep-close-to": "^3.0.2",
"prettier": "^2.5.1",
"rollup": "^3.22.0"
},

@@ -48,0 +48,0 @@ "dependencies": {

# airpls
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![npm download][download-image]][download-url]

@@ -36,9 +34,5 @@

[npm-url]: https://www.npmjs.com/package/ml-airpls
[travis-image]: https://img.shields.io/travis/mljs/airpls/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/mljs/airpls
[codecov-image]: https://img.shields.io/codecov/c/github/mljs/airpls.svg?style=flat-square
[codecov-url]: https://codecov.io/gh/mljs/airpls
[david-image]: https://img.shields.io/david/mljs/airpls.svg?style=flat-square
[david-url]: https://david-dm.org/mljs/airpls
[download-image]: https://img.shields.io/npm/dm/ml-airpls.svg?style=flat-square
[download-url]: https://www.npmjs.com/package/ml-airpls

@@ -142,2 +142,3 @@ // Based on https://github.com/scijs/cholesky-solve

}
function ldlDsolve(

@@ -153,2 +154,3 @@ n /* D is n-by-n, where n >= 0 */,

}
function ldlLTsolve(

@@ -288,3 +290,3 @@ n /* L is n-by-n, where n >= 0 */,

if (d === n) {
return function (b) {
return (b) => {
ldlPerm(n, bp1, b, P);

@@ -291,0 +293,0 @@ ldlLsolve(n, bp1, Lp, Li, Lx);

@@ -1,2 +0,2 @@

import Cholesky from './choleskySolver';
import cholesky from './choleskySolver';
import { updateSystem, getDeltaMatrix, getCloseIndex } from './utils';

@@ -18,3 +18,3 @@

*/
function airPLS(x, y, options = {}) {
export default function airPLS(x, y, options = {}) {
let {

@@ -66,3 +66,3 @@ maxIterations = 100,

let cho = Cholesky(leftHandSide, nbPoints, permutationEncodedArray);
let cho = cholesky(leftHandSide, nbPoints, permutationEncodedArray);

@@ -105,3 +105,1 @@ baseline = cho(rightHandSide);

}
export { airPLS as default };

@@ -0,0 +0,0 @@ import cuthillMckee from 'cuthill-mckee';

Sorry, the diff of this file is not supported yet