MCPcopy Index your code
hub / github.com/dask/dask / moment

Method moment

dask/array/_array_expr/_collection.py:429–458  ·  view source on GitHub ↗

Calculate the nth centralized moment. Refer to :func:`dask.array.moment` for the full documentation. See Also -------- dask.array.moment : equivalent function

(
        self,
        order,
        axis=None,
        dtype=None,
        keepdims=False,
        ddof=0,
        split_every=None,
        out=None,
    )

Source from the content-addressed store, hash-verified

427 )
428
429 def moment(
430 self,
431 order,
432 axis=None,
433 dtype=None,
434 keepdims=False,
435 ddof=0,
436 split_every=None,
437 out=None,
438 ):
439 """Calculate the nth centralized moment.
440
441 Refer to :func:`dask.array.moment` for the full documentation.
442
443 See Also
444 --------
445 dask.array.moment : equivalent function
446 """
447 from dask.array.reductions import moment
448
449 return moment(
450 self,
451 order,
452 axis=axis,
453 dtype=dtype,
454 keepdims=keepdims,
455 ddof=ddof,
456 split_every=split_every,
457 out=out,
458 )
459
460 def prod(self, axis=None, dtype=None, keepdims=False, split_every=None, out=None):
461 """Return the product of the array elements over the given axis

Callers 4

test_sparse.pyFile · 0.45
test_momentFunction · 0.45
test_momentsFunction · 0.45
test_cupy_core.pyFile · 0.45

Calls 1

momentFunction · 0.90

Tested by 2

test_momentFunction · 0.36
test_momentsFunction · 0.36