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) • 441 B
JavaScript
;
module.exports = {
'name': 'mean',
'category': 'Statistics',
'syntax': ['mean(a, b, c, ...)', 'mean(A)', 'mean(A, dim)'],
'description': 'Compute the arithmetic mean of a list of values.',
'examples': ['mean(2, 3, 4, 1)', 'mean([2, 3, 4, 1])', 'mean([2, 5; 4, 3])', 'mean([2, 5; 4, 3], 1)', 'mean([2, 5; 4, 3], 2)', 'mean([1.0, 2.7, 3.2, 4.0])'],
'seealso': ['max', 'median', 'min', 'prod', 'std', 'sum', 'var']
};