pearson-pair
v1.0.0
Published
Simple JavaScript Library to calculate pair of highest and lowest correlation integer arrays.
Downloads
7
Maintainers
Readme
Pearson Pairs
JavaScript package to form pairs of highest and lowest correlation arrays.
Install
To install globally
npm pearson-pairTo install locally
npm pearson-pairImport
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()