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
10 lines (9 loc) • 417 B
JavaScript
;
module.exports = {
'name': 'mad',
'category': 'Statistics',
'syntax': ['mad(a, b, c, ...)', 'mad(A)'],
'description': 'Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.',
'examples': ['mad(10, 20, 30)', 'mad([1, 2, 3])'],
'seealso': ['mean', 'median', 'std', 'abs']
};