MCPcopy Index your code
hub / github.com/tensorflow/tfjs-examples / mean

Function mean

cart-pole/utils.js:24–26  ·  view source on GitHub ↗
(xs)

Source from the content-addressed store, hash-verified

22 * @returns {number} The arithmetic mean of `xs`
23 */
24export function mean(xs) {
25 return sum(xs) / xs.length;
26}
27
28/**
29 * Calculate the sum of an Array of numbers.

Callers 1

setUpUIFunction · 0.90

Calls 1

sumFunction · 0.85

Tested by

no test coverage detected