Returns the average rate of change within the specified window