MCPcopy Create free account
hub / github.com/cortexkit/magic-context / mean

Function mean

packages/plugin/scripts/embedding-baseline-diff.ts:90–93  ·  view source on GitHub ↗
(values: number[])

Source from the content-addressed store, hash-verified

88}
89
90function mean(values: number[]): number {
91 if (values.length === 0) return 0;
92 return values.reduce((a, b) => a + b, 0) / values.length;
93}
94
95function main() {
96 const [oldPath, newPath] = process.argv.slice(2);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected