UNPKG

calculate-correlation

Version:

Calculates the correlation coefficient of two arrays. Simple, with no dependencies

4 lines (3 loc) 149 B
// idea from https://codepen.io/grok/pen/LvOQbW?editors=0010 module.exports = n => typeof n === 'number' && n === Number(n) && Number.isFinite(n);