dask.array.moment#
- dask.array.moment(a, order, axis=None, dtype=None, keepdims=False, ddof=0, split_every=None, out=None)[source]#
Calculate the nth centralized moment.
- Parameters:
- aArray
Data over which to compute moment
- orderint
Order of the moment that is returned, must be >= 2.
- axisint, optional
Axis along which the central moment is computed. The default is to compute the moment of the flattened array.
- dtypedata-type, optional
Type to use in computing the moment. For arrays of integer type the default is float64; for arrays of float types it is the same as the array type.
- keepdimsbool, optional
If this is set to True, the axes which are reduced are left in the result as dimensions with size one. With this option, the result will broadcast correctly against the original array.
- ddofint, optional
âDelta Degrees of Freedomâ: the divisor used in the calculation is N - ddof, where N represents the number of elements. By default ddof is zero.
- Returns:
- momentArray
References
[1]Pebay, Philippe (2008), âFormulas for Robust, One-Pass Parallel Computation of Covariances and Arbitrary-Order Statistical Momentsâ, Technical Report SAND2008-6212, Sandia National Laboratories.