UNPKG

mathjs

Version:

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif

8 lines 464 B
export var corrDocs = { name: 'corr', category: 'Statistics', syntax: ['corr(A,B)'], description: 'Compute the correlation coefficient of a two list with values, For matrices, the matrix correlation coefficient is calculated.', examples: ['corr([2, 4, 6, 8],[1, 2, 3, 6])', 'corr(matrix([[1, 2.2, 3, 4.8, 5], [1, 2, 3, 4, 5]]), matrix([[4, 5.3, 6.6, 7, 8], [1, 2, 3, 4, 5]]))'], seealso: ['max', 'mean', 'min', 'median', 'min', 'prod', 'std', 'sum'] };