Two Simple Smoothers
SMOOTH1 and SMOOTH2 each smooth a data sequence by convolving it with a filter that's well-suited to smoothing. The output and its first two derivatives will be smooth.
Each smoother is controlled by a user-supplied response time, in units of samples, which produces about the same agility as a moving average of that many samples. The output is much smoother though, due to far greater high-frequency attenuation.
SMOOTH1's impulse response is nonnegative, like a Gaussian but compact. SMOOTH2's impulse response has just enough of a negative outer lobe to flatten the low-frequency response and give perfect response to a quadratic input component. Which to prefer is hard to say, or may depend on the application.
Both smoothers provide strong high-frequency attenuation. Their frequency response "sidelobes" start below -60 dB and fall 18 dB per octave, making even the double-differentiated output smooth.
See also LSSMOOTH (ID:49789), IRLSSMOOTH (ID:49788)
Zitieren als
Jim (2024). Two Simple Smoothers (https://www.mathworks.com/matlabcentral/fileexchange/50342-two-simple-smoothers), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- AI, Data Science, and Statistics > Curve Fitting Toolbox >
- Signal Processing > Signal Processing Toolbox > Signal Generation and Preprocessing > Smoothing and Denoising >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |