— I want to smooth it out, but I want to preserve the peaks of the mountains. The Savitzky–Golay (SG) filter overcomes a dilemma frequently encountered in signal processing with surprisingly simple ...