npm.io
1.0.0 • Published 5 years ago

pearson-pair

Licence
MIT
Version
1.0.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0

Pearson Pairs

JavaScript package to form pairs of highest and lowest correlation arrays.

Install

To install globally

npm pearson-pair
To install locally
npm pearson-pair

Import

const PearsonPair = require('PearsonPair')

Use

Create a pearson-pair object
pcor = PearsonPair([[1,2,3],[2,2,4],[3,2,4],[3,4,7]])
Find the closest pair
pcor.findClosestPair()
Find the most distant pair
pcor.findDistantPair()
Get the correlation matrix
pcor.getCorrelationMatrix()
Get the highest correlation along with the pair indices
pcor.getHighest()
Get the lowest correlation along with the pair indices
pcor.getLowest()
License: MIT

Keywords