MCPcopy Create free account
hub / github.com/arguiot/TheoremJS / average.js

File average.js

src/includes/functions/math/stats/average.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1average() {
2 const summed = this.sum(...arguments);
3 const average = new BigNumber(summed).div(arguments.length);
4 return average

Callers

nothing calls this directly

Calls 2

sumMethod · 0.80
divMethod · 0.80

Tested by

no test coverage detected