Calculate the x-average of the current row and the rows before and after it