Is there a way to do a rolling average?

I have a 3D wave and I would like to find a way to average the first 10 points by the second 10 points, then average the second 10 points by the third 10 points, and so on. Is there a way to do this?
Thank you!