statsmodels.sandbox.tsa.movstat.movorder

statsmodels.sandbox.tsa.movstat.movorder(x, order='med', windsize=3, lag='lagged')[source]

moving order statistics

Parameters:
xndarray

time series data

orderfloat or ‘med’, ‘min’, ‘max’

which order statistic to calculate

windsizeint

window size

lag‘lagged’, ‘centered’, or ‘leading’

location of window relative to current position

Returns:
filtered array