MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / mean

Function mean

graph-ui/tools/eval-llm.mjs:216–217  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

214
215/** Mean of a list, or zero for an empty one. Never a division by nothing. */
216const mean = (values) =>
217 values.length === 0 ? 0 : values.reduce((sum, value) => sum + value, 0) / values.length;
218
219/** Rounded to three places, so a report does not carry sixteen digits of noise. */
220const round = (value) => Math.round(value * 1000) / 1000;

Callers 1

mainFunction · 0.70

Calls 1

reduceMethod · 0.80

Tested by

no test coverage detected