1. A method, comprising: calculating, using at least an accumulator, an average value of M sequential data values, where M is an integer; delaying the M sequential data values before passing a delay output; detecting a data value with an error in the M sequential data values that are delayed; and controlling the accumulator to correct the average value of the M sequential data values as a function of the error.