npm.io
2.0.0 • Published 3 years ago

node-correlation

Licence
MIT
Version
2.0.0
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
14

node-correlation

A Node.JS script to calculate correlation between two arrays.

Install

yarn add node-correlation

Usage

import { correlation } from 'node-correlation';

const a = [1, 2, 3, 4, 5];
const b = [0, 6, 2, 10, 4];

console.log(correlation(a, b));

Keywords