How do you remove spikes from a signal?
Sometimes data exhibit unwanted transients, or spikes. Median filtering is a natural way to eliminate them. Consider the open-loop voltage across the input of an analog instrument in the presence of 60 Hz power-line noise.