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 11.0.0 to 11.1.0

lib-esm/x/xEnsureFloat64.d.ts

3

lib-esm/index.d.ts

@@ -17,2 +17,3 @@ import { DoubleArray } from 'cheminfo-types';

export * from './x/xDotProduct';
export * from './x/xEnsureFloat64';
export * from './x/xFindClosestIndex';

@@ -59,3 +60,3 @@ export * from './x/xGetFromToIndex';

export * from './xy/xyCheck';
export * from './xy/xyClosestX';
export * from './xy/xyFindClosestPoint';
export * from './xy/xyCovariance';

@@ -62,0 +63,0 @@ export * from './xy/xyCumulativeDistributionStatistics';

@@ -16,2 +16,3 @@ export * from './reim/reimAbsolute';

export * from './x/xDotProduct';
export * from './x/xEnsureFloat64';
export * from './x/xFindClosestIndex';

@@ -58,3 +59,3 @@ export * from './x/xGetFromToIndex';

export * from './xy/xyCheck';
export * from './xy/xyClosestX';
export * from './xy/xyFindClosestPoint';
export * from './xy/xyCovariance';

@@ -61,0 +62,0 @@ export * from './xy/xyCumulativeDistributionStatistics';

import { DataXY } from 'cheminfo-types';
/**Finds the covariance of the points
*
* @param points
* @param data
* @param options
* @return the covariance
*/
export declare function xyCovariance(points: DataXY, options?: {
export declare function xyCovariance(data: DataXY, options?: {
/** if true, divide by (n-1); if false, divide by n

@@ -10,0 +10,0 @@ * @default true

import { xMean } from '../x/xMean';
/**Finds the covariance of the points
*
* @param points
* @param data
* @param options
* @return the covariance
*/
export function xyCovariance(points, options = {}) {
const { x, y } = points;
export function xyCovariance(data, options = {}) {
const { x, y } = data;
const { unbiased = true } = options;

@@ -11,0 +11,0 @@ const meanX = xMean(x);

@@ -20,7 +20,7 @@ import { DataXY } from 'cheminfo-types';

*
* @param arrayXY - object containing 2 properties x and y
* @param data - object containing 2 properties x and y
* @param options - options
* @return new object with x / y array with the equally spaced data.
*/
export declare function xyEquallySpaced(arrayXY: DataXY, options?: {
export declare function xyEquallySpaced(data: DataXY, options?: {
/** from

@@ -27,0 +27,0 @@ * @default x[0]

@@ -25,8 +25,8 @@ import { createFromToArray } from '../utils/createFromToArray';

*
* @param arrayXY - object containing 2 properties x and y
* @param data - object containing 2 properties x and y
* @param options - options
* @return new object with x / y array with the equally spaced data.
*/
export function xyEquallySpaced(arrayXY, options = {}) {
let { x, y } = arrayXY;
export function xyEquallySpaced(data, options = {}) {
let { x, y } = data;
let xLength = x.length;

@@ -40,3 +40,3 @@ let { from = x[0], to = x[xLength - 1], variant = 'smooth', numberOfPoints = 100, exclusions = [], zones = [], } = options;

}
if (!zoneCheck(arrayXY)) {
if (!zoneCheck(data)) {
throw new RangeError("the x and y vector doesn't have the same size.");

@@ -43,0 +43,0 @@ }

import { DataXY } from 'cheminfo-types';
/** Filter an array x/y based on various criteria x points are expected to be sorted
*
* @param points - points
* @param data - points
* @param options - options
* @return filtered array
*/
export declare function xyFilterX(points: DataXY, options?: {
export declare function xyFilterX(data: DataXY, options?: {
/** filter from

@@ -10,0 +10,0 @@ * @default x[0]

import getZones from '../zones/utils/getZones';
/** Filter an array x/y based on various criteria x points are expected to be sorted
*
* @param points - points
* @param data - points
* @param options - options
* @return filtered array
*/
export function xyFilterX(points, options = {}) {
const { x, y } = points;
export function xyFilterX(data, options = {}) {
const { x, y } = data;
const { from = x[0], to = x[x.length - 1], exclusions = [] } = options;

@@ -11,0 +11,0 @@ let zones = getZones(from, to, exclusions);

@@ -5,7 +5,7 @@ import { DataXY } from 'cheminfo-types';

*
* @param points - points
* @param data - points
* @param options - options
* @return array of merged and weighted points
*/
export declare function xyMaxMerge(points: DataXY, options?: {
export declare function xyMaxMerge(data: DataXY, options?: {
/** window for abscissas to merge

@@ -12,0 +12,0 @@ * @default 0.001

/**
* Merge abscissas values on similar ordinates and weight the group of abscissas
*
* @param points - points
* @param data - points
* @param options - options
* @return array of merged and weighted points
*/
export function xyMaxMerge(points, options = {}) {
const { x, y } = points;
export function xyMaxMerge(data, options = {}) {
const { x, y } = data;
const { groupWidth = 0.001 } = options;

@@ -11,0 +11,0 @@ let merged = { x: [], y: [] };

@@ -5,3 +5,3 @@ import { DataXY } from 'cheminfo-types';

*
* @param points - points
* @param data - points
* @param centroids - centroids

@@ -11,3 +11,3 @@ * @param options - options

*/
export declare function xyMergeByCentroids(points: DataXY, centroids: number[], options?: {
export declare function xyMergeByCentroids(data: DataXY, centroids: number[], options?: {
/** window size, has to be a positive number

@@ -14,0 +14,0 @@ * @default 0.01

/**
* Merge abscissa values if the ordinate value is in a list of centroids
*
* @param points - points
* @param data - points
* @param centroids - centroids

@@ -9,3 +9,3 @@ * @param options - options

*/
export function xyMergeByCentroids(points, centroids, options = {}) {
export function xyMergeByCentroids(data, centroids, options = {}) {
const { window = 0.01 } = options;

@@ -18,6 +18,6 @@ let mergedPoints = {

let mergedIndex = 0;
while (originalIndex < points.x.length && mergedIndex < centroids.length) {
let diff = points.x[originalIndex] - centroids[mergedIndex];
while (originalIndex < data.x.length && mergedIndex < centroids.length) {
let diff = data.x[originalIndex] - centroids[mergedIndex];
if (Math.abs(diff) < window) {
mergedPoints.y[mergedIndex] += points.y[originalIndex++];
mergedPoints.y[mergedIndex] += data.y[originalIndex++];
}

@@ -24,0 +24,0 @@ else if (diff < 0) {

@@ -6,7 +6,7 @@ import { DoubleArray, DataXY } from 'cheminfo-types';

*
* @param points - array of points {x,y}
* @param data - array of points {x,y}
* @param fct - callback function that from an array returns a value.
* @param options - options
*/
export declare function xyRolling(points: DataXY, fct?: (array: DoubleArray) => number, options?: {}): DataXY;
export declare function xyRolling(data: DataXY, fct?: (array: DoubleArray) => number, options?: {}): DataXY;
//# sourceMappingURL=xyRolling.d.ts.map

@@ -7,8 +7,8 @@ import { xRolling } from '../x/xRolling';

*
* @param points - array of points {x,y}
* @param data - array of points {x,y}
* @param fct - callback function that from an array returns a value.
* @param options - options
*/
export function xyRolling(points, fct, options = {}) {
let { x, y } = points;
export function xyRolling(data, fct, options = {}) {
let { x, y } = data;
y = xRolling(y, fct, options);

@@ -15,0 +15,0 @@ if (x.length !== y.length) {

@@ -5,7 +5,7 @@ import { DataXY } from 'cheminfo-types';

*
* @param points - points
* @param data - points
* @param options - options
* @return array of merged and weighted points
*/
export declare function xyWeightedMerge(points: DataXY, options?: {
export declare function xyWeightedMerge(data: DataXY, options?: {
/** window for abscissas to merge

@@ -12,0 +12,0 @@ * @default 0.001

/**
* Merge abscissas values on similar ordinates and weight the group of abscissas
*
* @param points - points
* @param data - points
* @param options - options
* @return array of merged and weighted points
*/
export function xyWeightedMerge(points, options = {}) {
const { x, y } = points;
export function xyWeightedMerge(data, options = {}) {
const { x, y } = data;
const { groupWidth = 0.001 } = options;

@@ -11,0 +11,0 @@ let merged = { x: [], y: [] };

@@ -5,3 +5,3 @@ import { DataXY } from 'cheminfo-types';

*
* @param arrayXY
* @param data
* @returns boolean

@@ -11,3 +11,3 @@ */

/** points */
arrayXY: DataXY): boolean;
data: DataXY): boolean;
//# sourceMappingURL=zoneCheck.d.ts.map
/**
* zoneCheck.
*
* @param arrayXY
* @param data
* @returns boolean

@@ -9,4 +9,4 @@ */

/** points */
arrayXY) {
let { x, y } = arrayXY;
data) {
let { x, y } = data;
if (x.length !== y.length) {

@@ -13,0 +13,0 @@ return false;

@@ -17,2 +17,3 @@ import { DoubleArray } from 'cheminfo-types';

export * from './x/xDotProduct';
export * from './x/xEnsureFloat64';
export * from './x/xFindClosestIndex';

@@ -59,3 +60,3 @@ export * from './x/xGetFromToIndex';

export * from './xy/xyCheck';
export * from './xy/xyClosestX';
export * from './xy/xyFindClosestPoint';
export * from './xy/xyCovariance';

@@ -62,0 +63,0 @@ export * from './xy/xyCumulativeDistributionStatistics';

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -28,2 +32,3 @@ if (k2 === undefined) k2 = k;

__exportStar(require("./x/xDotProduct"), exports);
__exportStar(require("./x/xEnsureFloat64"), exports);
__exportStar(require("./x/xFindClosestIndex"), exports);

@@ -70,3 +75,3 @@ __exportStar(require("./x/xGetFromToIndex"), exports);

__exportStar(require("./xy/xyCheck"), exports);
__exportStar(require("./xy/xyClosestX"), exports);
__exportStar(require("./xy/xyFindClosestPoint"), exports);
__exportStar(require("./xy/xyCovariance"), exports);

@@ -73,0 +78,0 @@ __exportStar(require("./xy/xyCumulativeDistributionStatistics"), exports);

import { DataXY } from 'cheminfo-types';
/**Finds the covariance of the points
*
* @param points
* @param data
* @param options
* @return the covariance
*/
export declare function xyCovariance(points: DataXY, options?: {
export declare function xyCovariance(data: DataXY, options?: {
/** if true, divide by (n-1); if false, divide by n

@@ -10,0 +10,0 @@ * @default true

@@ -7,8 +7,8 @@ "use strict";

*
* @param points
* @param data
* @param options
* @return the covariance
*/
function xyCovariance(points, options = {}) {
const { x, y } = points;
function xyCovariance(data, options = {}) {
const { x, y } = data;
const { unbiased = true } = options;

@@ -15,0 +15,0 @@ const meanX = (0, xMean_1.xMean)(x);

@@ -20,7 +20,7 @@ import { DataXY } from 'cheminfo-types';

*
* @param arrayXY - object containing 2 properties x and y
* @param data - object containing 2 properties x and y
* @param options - options
* @return new object with x / y array with the equally spaced data.
*/
export declare function xyEquallySpaced(arrayXY: DataXY, options?: {
export declare function xyEquallySpaced(data: DataXY, options?: {
/** from

@@ -27,0 +27,0 @@ * @default x[0]

@@ -31,8 +31,8 @@ "use strict";

*
* @param arrayXY - object containing 2 properties x and y
* @param data - object containing 2 properties x and y
* @param options - options
* @return new object with x / y array with the equally spaced data.
*/
function xyEquallySpaced(arrayXY, options = {}) {
let { x, y } = arrayXY;
function xyEquallySpaced(data, options = {}) {
let { x, y } = data;
let xLength = x.length;

@@ -46,3 +46,3 @@ let { from = x[0], to = x[xLength - 1], variant = 'smooth', numberOfPoints = 100, exclusions = [], zones = [], } = options;

}
if (!(0, zoneCheck_1.zoneCheck)(arrayXY)) {
if (!(0, zoneCheck_1.zoneCheck)(data)) {
throw new RangeError("the x and y vector doesn't have the same size.");

@@ -49,0 +49,0 @@ }

import { DataXY } from 'cheminfo-types';
/** Filter an array x/y based on various criteria x points are expected to be sorted
*
* @param points - points
* @param data - points
* @param options - options
* @return filtered array
*/
export declare function xyFilterX(points: DataXY, options?: {
export declare function xyFilterX(data: DataXY, options?: {
/** filter from

@@ -10,0 +10,0 @@ * @default x[0]

@@ -10,8 +10,8 @@ "use strict";

*
* @param points - points
* @param data - points
* @param options - options
* @return filtered array
*/
function xyFilterX(points, options = {}) {
const { x, y } = points;
function xyFilterX(data, options = {}) {
const { x, y } = data;
const { from = x[0], to = x[x.length - 1], exclusions = [] } = options;

@@ -18,0 +18,0 @@ let zones = (0, getZones_1.default)(from, to, exclusions);

@@ -5,7 +5,7 @@ import { DataXY } from 'cheminfo-types';

*
* @param points - points
* @param data - points
* @param options - options
* @return array of merged and weighted points
*/
export declare function xyMaxMerge(points: DataXY, options?: {
export declare function xyMaxMerge(data: DataXY, options?: {
/** window for abscissas to merge

@@ -12,0 +12,0 @@ * @default 0.001

@@ -7,8 +7,8 @@ "use strict";

*
* @param points - points
* @param data - points
* @param options - options
* @return array of merged and weighted points
*/
function xyMaxMerge(points, options = {}) {
const { x, y } = points;
function xyMaxMerge(data, options = {}) {
const { x, y } = data;
const { groupWidth = 0.001 } = options;

@@ -15,0 +15,0 @@ let merged = { x: [], y: [] };

@@ -5,3 +5,3 @@ import { DataXY } from 'cheminfo-types';

*
* @param points - points
* @param data - points
* @param centroids - centroids

@@ -11,3 +11,3 @@ * @param options - options

*/
export declare function xyMergeByCentroids(points: DataXY, centroids: number[], options?: {
export declare function xyMergeByCentroids(data: DataXY, centroids: number[], options?: {
/** window size, has to be a positive number

@@ -14,0 +14,0 @@ * @default 0.01

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

*
* @param points - points
* @param data - points
* @param centroids - centroids

@@ -13,3 +13,3 @@ * @param options - options

*/
function xyMergeByCentroids(points, centroids, options = {}) {
function xyMergeByCentroids(data, centroids, options = {}) {
const { window = 0.01 } = options;

@@ -22,6 +22,6 @@ let mergedPoints = {

let mergedIndex = 0;
while (originalIndex < points.x.length && mergedIndex < centroids.length) {
let diff = points.x[originalIndex] - centroids[mergedIndex];
while (originalIndex < data.x.length && mergedIndex < centroids.length) {
let diff = data.x[originalIndex] - centroids[mergedIndex];
if (Math.abs(diff) < window) {
mergedPoints.y[mergedIndex] += points.y[originalIndex++];
mergedPoints.y[mergedIndex] += data.y[originalIndex++];
}

@@ -28,0 +28,0 @@ else if (diff < 0) {

@@ -6,7 +6,7 @@ import { DoubleArray, DataXY } from 'cheminfo-types';

*
* @param points - array of points {x,y}
* @param data - array of points {x,y}
* @param fct - callback function that from an array returns a value.
* @param options - options
*/
export declare function xyRolling(points: DataXY, fct?: (array: DoubleArray) => number, options?: {}): DataXY;
export declare function xyRolling(data: DataXY, fct?: (array: DoubleArray) => number, options?: {}): DataXY;
//# sourceMappingURL=xyRolling.d.ts.map

@@ -10,8 +10,8 @@ "use strict";

*
* @param points - array of points {x,y}
* @param data - array of points {x,y}
* @param fct - callback function that from an array returns a value.
* @param options - options
*/
function xyRolling(points, fct, options = {}) {
let { x, y } = points;
function xyRolling(data, fct, options = {}) {
let { x, y } = data;
y = (0, xRolling_1.xRolling)(y, fct, options);

@@ -18,0 +18,0 @@ if (x.length !== y.length) {

@@ -5,7 +5,7 @@ import { DataXY } from 'cheminfo-types';

*
* @param points - points
* @param data - points
* @param options - options
* @return array of merged and weighted points
*/
export declare function xyWeightedMerge(points: DataXY, options?: {
export declare function xyWeightedMerge(data: DataXY, options?: {
/** window for abscissas to merge

@@ -12,0 +12,0 @@ * @default 0.001

@@ -7,8 +7,8 @@ "use strict";

*
* @param points - points
* @param data - points
* @param options - options
* @return array of merged and weighted points
*/
function xyWeightedMerge(points, options = {}) {
const { x, y } = points;
function xyWeightedMerge(data, options = {}) {
const { x, y } = data;
const { groupWidth = 0.001 } = options;

@@ -15,0 +15,0 @@ let merged = { x: [], y: [] };

@@ -5,3 +5,3 @@ import { DataXY } from 'cheminfo-types';

*
* @param arrayXY
* @param data
* @returns boolean

@@ -11,3 +11,3 @@ */

/** points */
arrayXY: DataXY): boolean;
data: DataXY): boolean;
//# sourceMappingURL=zoneCheck.d.ts.map

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

*
* @param arrayXY
* @param data
* @returns boolean

@@ -13,4 +13,4 @@ */

/** points */
arrayXY) {
let { x, y } = arrayXY;
data) {
let { x, y } = data;
if (x.length !== y.length) {

@@ -17,0 +17,0 @@ return false;

{
"name": "ml-spectra-processing",
"version": "11.0.0",
"version": "11.1.0",
"description": "Various method to process spectra",

@@ -51,5 +51,4 @@ "main": "./lib/index.js",

"cheminfo-build": "^1.1.11",
"eslint": "^8.9.0",
"eslint": "^8.10.0",
"eslint-config-cheminfo-typescript": "^10.3.0",
"eslint-plugin-jsdoc": "^37.9.4",
"esm": "^3.2.25",

@@ -59,16 +58,16 @@ "jest": "^27.5.1",

"jscpd": "^3.4.5",
"ml-spectra-fitting": "^3.0.4",
"ml-spectra-fitting": "^3.1.0",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"ts-jest": "^27.1.3",
"typedoc": "^0.22.12",
"typescript": "^4.5.5"
"typedoc": "^0.22.13",
"typescript": "^4.6.2"
},
"dependencies": {
"binary-search": "^1.3.6",
"cheminfo-types": "^1.0.0",
"cheminfo-types": "^1.1.0",
"fft.js": "^4.0.4",
"is-any-array": "^2.0.0",
"median-quickselect": "^1.0.1",
"ml-matrix": "^6.8.2",
"ml-matrix": "^6.9.0",
"ml-xsadd": "^2.0.0",

@@ -75,0 +74,0 @@ "spline-interpolator": "^1.0.0"

@@ -19,2 +19,3 @@ import { DoubleArray } from 'cheminfo-types';

export * from './x/xDotProduct';
export * from './x/xEnsureFloat64';
export * from './x/xFindClosestIndex';

@@ -63,3 +64,3 @@ export * from './x/xGetFromToIndex';

export * from './xy/xyCheck';
export * from './xy/xyClosestX';
export * from './xy/xyFindClosestPoint';
export * from './xy/xyCovariance';

@@ -66,0 +67,0 @@ export * from './xy/xyCumulativeDistributionStatistics';

@@ -7,3 +7,3 @@ import { DataXY } from 'cheminfo-types';

*
* @param points
* @param data
* @param options

@@ -13,3 +13,3 @@ * @return the covariance

export function xyCovariance(
points: DataXY,
data: DataXY,
options: {

@@ -22,3 +22,3 @@ /** if true, divide by (n-1); if false, divide by n

): number {
const { x, y } = points;
const { x, y } = data;
const { unbiased = true } = options;

@@ -25,0 +25,0 @@

@@ -29,3 +29,3 @@ import { DataXY } from 'cheminfo-types';

*
* @param arrayXY - object containing 2 properties x and y
* @param data - object containing 2 properties x and y
* @param options - options

@@ -36,3 +36,3 @@ * @return new object with x / y array with the equally spaced data.

export function xyEquallySpaced(
arrayXY: DataXY,
data: DataXY,
options: {

@@ -71,3 +71,3 @@ /** from

): DataXY {
let { x, y } = arrayXY;
let { x, y } = data;
let xLength = x.length;

@@ -91,3 +91,3 @@

if (!zoneCheck(arrayXY)) {
if (!zoneCheck(data)) {
throw new RangeError("the x and y vector doesn't have the same size.");

@@ -94,0 +94,0 @@ }

@@ -7,3 +7,3 @@ import { DataXY } from 'cheminfo-types';

*
* @param points - points
* @param data - points
* @param options - options

@@ -14,3 +14,3 @@ * @return filtered array

export function xyFilterX(
points: DataXY,
data: DataXY,
options: {

@@ -31,3 +31,3 @@ /** filter from

): DataXY {
const { x, y } = points;
const { x, y } = data;
const { from = x[0], to = x[x.length - 1], exclusions = [] } = options;

@@ -34,0 +34,0 @@

@@ -6,3 +6,3 @@ import { DataXY } from 'cheminfo-types';

*
* @param points - points
* @param data - points
* @param options - options

@@ -12,3 +12,3 @@ * @return array of merged and weighted points

export function xyMaxMerge(
points: DataXY,
data: DataXY,
options: {

@@ -21,3 +21,3 @@ /** window for abscissas to merge

): DataXY {
const { x, y } = points;
const { x, y } = data;
const { groupWidth = 0.001 } = options;

@@ -24,0 +24,0 @@

@@ -6,3 +6,3 @@ import { DataXY } from 'cheminfo-types';

*
* @param points - points
* @param data - points
* @param centroids - centroids

@@ -13,3 +13,3 @@ * @param options - options

export function xyMergeByCentroids(
points: DataXY,
data: DataXY,
centroids: number[],

@@ -32,6 +32,6 @@ options: {

let mergedIndex = 0;
while (originalIndex < points.x.length && mergedIndex < centroids.length) {
let diff = points.x[originalIndex] - centroids[mergedIndex];
while (originalIndex < data.x.length && mergedIndex < centroids.length) {
let diff = data.x[originalIndex] - centroids[mergedIndex];
if (Math.abs(diff) < window) {
mergedPoints.y[mergedIndex] += points.y[originalIndex++];
mergedPoints.y[mergedIndex] += data.y[originalIndex++];
} else if (diff < 0) {

@@ -38,0 +38,0 @@ originalIndex++;

@@ -10,3 +10,3 @@ import { DoubleArray, DataXY } from 'cheminfo-types';

*
* @param points - array of points {x,y}
* @param data - array of points {x,y}
* @param fct - callback function that from an array returns a value.

@@ -16,7 +16,7 @@ * @param options - options

export function xyRolling(
points: DataXY,
data: DataXY,
fct?: (array: DoubleArray) => number,
options = {},
): DataXY {
let { x, y } = points;
let { x, y } = data;

@@ -23,0 +23,0 @@ y = xRolling(y, fct, options);

@@ -6,3 +6,3 @@ import { DataXY } from 'cheminfo-types';

*
* @param points - points
* @param data - points
* @param options - options

@@ -12,3 +12,3 @@ * @return array of merged and weighted points

export function xyWeightedMerge(
points: DataXY,
data: DataXY,
options: {

@@ -21,3 +21,3 @@ /** window for abscissas to merge

): DataXY {
const { x, y } = points;
const { x, y } = data;
const { groupWidth = 0.001 } = options;

@@ -24,0 +24,0 @@

@@ -6,3 +6,3 @@ import { DataXY } from 'cheminfo-types';

*
* @param arrayXY
* @param data
* @returns boolean

@@ -12,5 +12,5 @@ */

/** points */
arrayXY: DataXY,
data: DataXY,
): boolean {
let { x, y } = arrayXY;
let { x, y } = data;
if (x.length !== y.length) {

@@ -17,0 +17,0 @@ return false;

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

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

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

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

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

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