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

28 lines (27 loc) 651 B
export const varianceDocs = { name: 'variance', category: 'Statistics', syntax: [ 'variance(a, b, c, ...)', 'variance(A)', 'variance(A, normalization)' ], description: 'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".', examples: [ 'variance(2, 4, 6)', 'variance([2, 4, 6, 8])', 'variance([2, 4, 6, 8], "uncorrected")', 'variance([2, 4, 6, 8], "biased")', 'variance([1, 2, 3; 4, 5, 6])' ], seealso: [ 'max', 'mean', 'min', 'median', 'min', 'prod', 'std', 'sum' ] }