bartorch.moving_average#
- bartorch.moving_average(input, axis, length)#
Mean over each window of
lengthconsecutive elements alongaxis(-a,-l).Only whole windows are taken: the axis shrinks from
nton - length + 1andout[i]is the mean ofinput[i:i + length].