pwtools.num.rms

pwtools.num.rms(arr, nitems='all')[source]

RMS of all elements in a ndarray.

Parameters:
  • arr (ndarray)

  • nitems ({'all', float}) – normalization constant, the sum of squares is divided by this number, set to unity for no normalization, if ‘all’ then use nitems = number of elements in the array

Returns:

rms

Return type:

scalar