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 457 B
export var medianDocs = { name: 'median', category: 'Statistics', syntax: ['median(a, b, c, ...)', 'median(A)'], description: 'Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned.', examples: ['median(5, 2, 7)', 'median([3, -1, 5, 7])'], seealso: ['max', 'mean', 'min', 'prod', 'std', 'sum', 'variance', 'quantileSeq'] };