MCPcopy Create free account
hub / github.com/dask/dask / mean_chunk

Function mean_chunk

dask/array/reductions.py:334–343  ·  view source on GitHub ↗
(
    x, sum=chunk.sum, numel=numel, dtype="f8", computing_meta=False, **kwargs
)

Source from the content-addressed store, hash-verified

332
333
334def mean_chunk(
335 x, sum=chunk.sum, numel=numel, dtype="f8", computing_meta=False, **kwargs
336):
337 if computing_meta:
338 return x
339 n = numel(x, dtype=dtype, **kwargs)
340
341 total = sum(x, dtype=dtype, **kwargs)
342
343 return {"n": n, "total": total}
344
345
346def mean_combine(

Callers

nothing calls this directly

Calls 2

numelFunction · 0.85
sumFunction · 0.70

Tested by

no test coverage detected