This function calculates a rolling average
array
Optional
callback function that from an array returns a value
options
This function calculates a rolling average