Sha256: 894569dbb2c0e402b801cbc727a03e7b64c3e2d94be6310e2f94981904af2eb6
Contents?: true
Size: 338 Bytes
Versions: 25
Compression:
Stored size: 338 Bytes
Contents
d3.mean = function(array, f) { var n = array.length, a, m = 0, i = -1, j = 0; if (arguments.length === 1) { while (++i < n) if (d3_number(a = array[i])) m += (a - m) / ++j; } else { while (++i < n) if (d3_number(a = f.call(array, array[i], i))) m += (a - m) / ++j; } return j ? m : undefined; };
Version data entries
25 entries across 25 versions & 1 rubygems