Extracting the DC component of a signal, that proportional to the displacement about the y-axis
DC component is the zero frequency component. If you look at the DFT expression, this would mean summing up the input. So in mathematical terms this would be the sum (or the running sum) based on your application. 

In terms of filtering again this would be an averaging filter. Like moving average.