Applies a centered moving window of type window_type and size span on the data.
Parameters: | data : array-like
span : int
window_type : {string/tuple/float}
|
---|---|
Returns: | A (subclass of) MaskedArray. : Noting ``k=span//2``, the ``k`` first and ``k`` last data are always masked. : If ``data`` has a missing value at position ``i``, then the result has : missing values in the interval ``[i-k:i+k+1]``. : |
Warning
Only boxcar has been thoroughly tested so far...
Notes
The recognized window types are:
If the window requires special parameters, the window_type argument should be a tuple with the first argument the string name of the window, and the next arguments the needed parameters. If window_type is a floating point number, it is interpreted as the beta parameter of the kaiser window.