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

ml-spectra-processing

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-spectra-processing - npm Package Compare versions

Comparing version 10.1.2 to 10.2.0

@@ -8,5 +8,5 @@ import { DoubleMatrix } from '..';

export declare function matrixMinMaxZ(matrix: DoubleMatrix): {
max?: number;
min?: number;
max: number;
min: number;
};
//# sourceMappingURL=matrixMinMaxZ.d.ts.map

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

import { matrixCheck } from './matrixCheck';
/**

@@ -7,5 +8,3 @@ * Get min and max Z

export function matrixMinMaxZ(matrix) {
if (matrix.length === 0 || matrix[0].length === 0) {
throw new Error('matrixMinMaxZ requires at least 1 row and 1 column');
}
matrixCheck(matrix);
const nbRows = matrix.length;

@@ -12,0 +11,0 @@ const nbColumns = matrix[0].length;

@@ -9,2 +9,3 @@ export declare function createRandomArray(options?: {

* Seed for a deterministic sequence of random numbers.
* @default Date.now()
*/

@@ -11,0 +12,0 @@ seed?: number;

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

import XSadd from 'ml-xsadd';
import XSAdd from 'ml-xsadd';
/**

@@ -10,4 +10,4 @@ * Create a random array of numbers of a specific length

export function createRandomArray(options = {}) {
let { mean = 0, standardDeviation = 1, length = 1000, range = 1, seed = 0, distribution = 'normal', } = options;
const generator = new XSadd(seed);
let { mean = 0, standardDeviation = 1, length = 1000, range = 1, seed, distribution = 'normal', } = options;
const generator = new XSAdd(seed);
let returnArray = new Float64Array(length);

@@ -14,0 +14,0 @@ switch (distribution) {

@@ -8,5 +8,5 @@ import { DoubleMatrix } from '..';

export declare function matrixMinMaxZ(matrix: DoubleMatrix): {
max?: number;
min?: number;
max: number;
min: number;
};
//# sourceMappingURL=matrixMinMaxZ.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.matrixMinMaxZ = void 0;
const matrixCheck_1 = require("./matrixCheck");
/**

@@ -10,5 +11,3 @@ * Get min and max Z

function matrixMinMaxZ(matrix) {
if (matrix.length === 0 || matrix[0].length === 0) {
throw new Error('matrixMinMaxZ requires at least 1 row and 1 column');
}
(0, matrixCheck_1.matrixCheck)(matrix);
const nbRows = matrix.length;

@@ -15,0 +14,0 @@ const nbColumns = matrix[0].length;

@@ -9,2 +9,3 @@ export declare function createRandomArray(options?: {

* Seed for a deterministic sequence of random numbers.
* @default Date.now()
*/

@@ -11,0 +12,0 @@ seed?: number;

@@ -16,3 +16,3 @@ "use strict";

function createRandomArray(options = {}) {
let { mean = 0, standardDeviation = 1, length = 1000, range = 1, seed = 0, distribution = 'normal', } = options;
let { mean = 0, standardDeviation = 1, length = 1000, range = 1, seed, distribution = 'normal', } = options;
const generator = new ml_xsadd_1.default(seed);

@@ -19,0 +19,0 @@ let returnArray = new Float64Array(length);

{
"name": "ml-spectra-processing",
"version": "10.1.2",
"version": "10.2.0",
"description": "Various method to process spectra",

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

"jscpd": "^3.4.5",
"ml-spectra-fitting": "^3.0.4",
"prettier": "^2.5.1",

@@ -60,0 +61,0 @@ "rimraf": "^3.0.2",

import { DoubleMatrix } from '..';
import { matrixCheck } from './matrixCheck';

@@ -9,8 +10,6 @@ /**

export function matrixMinMaxZ(matrix: DoubleMatrix): {
max?: number;
min?: number;
max: number;
min: number;
} {
if (matrix.length === 0 || matrix[0].length === 0) {
throw new Error('matrixMinMaxZ requires at least 1 row and 1 column');
}
matrixCheck(matrix);
const nbRows = matrix.length;

@@ -17,0 +16,0 @@ const nbColumns = matrix[0].length;

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

import XSadd from 'ml-xsadd';
import XSAdd from 'ml-xsadd';
/**

@@ -20,2 +20,3 @@ * Create a random array of numbers of a specific length

* Seed for a deterministic sequence of random numbers.
* @default Date.now()
*/

@@ -46,7 +47,7 @@ seed?: number;

range = 1,
seed = 0,
seed,
distribution = 'normal',
} = options;
const generator = new XSadd(seed);
const generator = new XSAdd(seed);

@@ -76,3 +77,3 @@ let returnArray = new Float64Array(length);

standardDeviation: number,
generator: XSadd,
generator: XSAdd,
): number {

@@ -79,0 +80,0 @@ let val, u, v, s;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet