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

Function mean

graph-ui/tools/eval-check.mjs:125–126  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

123const contains = (haystack, needle) => haystack.toLowerCase().includes(needle.toLowerCase());
124
125const mean = (values) =>
126 values.length === 0 ? 0 : values.reduce((sum, value) => sum + value, 0) / values.length;
127
128const round = (value) => Math.round(value * 1000) / 1000;
129

Callers 1

mainFunction · 0.70

Calls 1

reduceMethod · 0.80

Tested by

no test coverage detected