smooth

Return to directory of Todd's CASA extensions

Smooth data using a window with requested size. This method is based on the convolution of a scaled window with the signal. The signal is prepared by introducing reflected copies of the signal (with the window size) in both ends so that transient parts are minimized in the beginning and end part of the output signal.

Usage:

au.smooth(x, window_len=10, window='hanning')
input:
  • x: the input signal
  • window_len: the dimension of the smoothing window
  • window: the type of window from 'flat', 'hanning', 'hamming', 'bartlett', 'blackman'
    • 'flat' window will produce a moving average smoothing.
output:
  • the smoothed signal

-- ToddHunter - 2013-11-22
Topic revision: r1 - 2013-11-22, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback