I had to correct one IIR filter in touch sensing software because there was potentially one overflow in computing. This pdf from microchip contains few filters with C codes and figures how they affect the signal.
Various filters for touch sensing signals