bartorch.moving_average

Contents

bartorch.moving_average#

bartorch.moving_average()#

Mean over each window of length consecutive elements along axis.

Only whole windows are taken: the axis shrinks from n to n - length + 1 and out[i] is the mean of input[i:i + length].