MCPcopy Create free account
hub / github.com/asm-js/validator / geometricMean

Function geometricMean

test/valid/GeometricMean-common.js:22–27  ·  view source on GitHub ↗
(start, end)

Source from the content-addressed store, hash-verified

20 }
21
22 function geometricMean(start, end) {
23 start = start|0;
24 end = end|0;
25
26 return +exp(+logSum(start, end) / +((end - start)|0));
27 }
28
29 return { geometricMean: geometricMean };
30}

Callers

nothing calls this directly

Calls 1

logSumFunction · 0.70

Tested by

no test coverage detected