arithmeticMean - nodef/extra-bigint GitHub Wiki
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