[PD] Implementing "switch-and-ramp" technique to cancel discontinuities