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
21 lines (20 loc) • 470 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])',
'mad(10, 20, 30)'
],
'seealso': [
'mean',
'median',
'std',
'abs'
]
};