1.0.0 • Published 3 years ago

pearson-pair v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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