Function
mean_chunk
(
x, sum=chunk.sum, numel=numel, dtype="f8", computing_meta=False, **kwargs
)
Source from the content-addressed store, hash-verified
| 332 | |
| 333 | |
| 334 | def 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 | |
| 346 | def mean_combine( |
Callers
nothing calls this directly
Tested by
no test coverage detected