Skip to content

tejas7777/pearson-pair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Pearson Pairs

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

Install

To install globally

npm install pearson-pair

To install locally

npm install pearson-pair --save

Import

const PearsonPair = require('pearson-pair')

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

About

Simple JavaScript Library to calculate pair of highest and lowest correlation integer arrays.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published