# node-correlation

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

Latest version **2.0.0** (published 2023-05-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-correlation
pnpm add node-correlation
yarn add node-correlation
bun add node-correlation
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2023-05-20 |
| First published | 2016-01-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Danilo Rodrigues |
| Maintainers | drodrigues |
| Keywords | correlation, math, array |

## Links

- npm: https://www.npmjs.com/package/node-correlation
- Repository: https://github.com/drodrigues/node-correlation
- Homepage: https://github.com/drodrigues/node-correlation#readme
- Issues: https://github.com/drodrigues/node-correlation/issues
- npm.io page: https://npm.io/package/node-correlation

## Dependencies (1)

- [fast-isnumeric](https://npm.io/package/fast-isnumeric.md) ^1.1.4

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2023-05-20
- 1.0.2 — 2016-01-06
- 1.0.1 — 2016-01-06
- 1.0.0 — 2016-01-06

## README

# node-correlation

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

### Install

```sh
yarn add node-correlation
```

### Usage

```js
import { correlation } from 'node-correlation';

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

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

---
_Source: https://npm.io/package/node-correlation · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
