Its formula is —

Parameters:
array: Input array or object having the elements to calculate the moment.
axis: Axis along which the moment is to be computed. By default axis = 0.
moment: Order of central moment that is returned.Returns: n-th central moment of the array elements based on the set parameters.
Code # 1:
|
Output:
Oth moment: [1 ... 1. 1. 1. 1. 1.]
Code # 2: with multidimensional data
|