xoa.core.stats.get_moments

Contents

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)) – n series of m samples.

  • 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 x and y, weighted sums of squared deviations of x, y and y - x and of the product x * y, then minima and maxima of x and y. The minima and maxima of empty series are respectively inf and -inf.