Skip to content

arithmeticMean

Subhajit Sahu edited this page Aug 9, 2022 · 2 revisions

Find the arithmetic mean of bigints (µ).

Similar: arithmethicMean, geometricMean, harmonicMean, quadriaticMean, cubicMean.
Similar: arithmethicMean, median, modes, variance, range.


function arithmeticMean(...xs)
// xs: bigints

const xbigint = require('extra-bigint');


xbigint.arithmethicMean(1n, 2n);
// → 1n

xbigint.arithmethicMean(1n, 2n, 3n);
// → 2n

xbigint.arithmethicMean(1n, 2n, 3n, 4n);
// → 2n


References

Clone this wiki locally