MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / mean

Function mean

scripts/agent-eval/offload-eval-cost.mjs:98–98  ·  view source on GitHub ↗
(arr, f)

Source from the content-addressed store, hash-verified

96
97// Per-arm means
98const mean = (arr, f) => arr.length ? arr.reduce((s,x)=>s+f(x),0)/arr.length : 0;
99console.log(`\n=== ${repo}: per-arm MEANS (n per arm) ===`);
100console.log('arm n | main $ sub $ TOTAL $ | main tok sub tok TOTAL tok | %$ in sub | %tok in sub');
101for (const arm of ARMS) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected