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!

How to Ask Good Questions



We’d love to help you. To improve your chances of getting an answer, here are some tips:

http://stackoverflow.com/help/how-to-ask

Oh, and once again, post your code/experiment when you ask a question like this.

--Jim Prouty
Software Engineer, WaveMetrics, Inc.