xoa.core.stats.get_moments#
- xoa.core.stats.get_moments(x, y=None, w=None)[source]#
Get the moments of series, along the last axis
A sample is used only if it is finite in x and y, and if its weight is finite and strictly positive.
- Parameters:
x (array_like(n, m)) –
nseries ofmsamples.y (None, array_like(n, m)) – Second variable, for comparative statistics.
w (None, array_like(n, m)) – Weights, which default to 1.
- Returns:
numpy.ndarray(NMOM, n) – Count, sum of weights, weighted means of
xandy, weighted sums of squared deviations ofx,yandy - xand of the productx * y, then minima and maxima ofxandy. The minima and maxima of empty series are respectivelyinfand-inf.