WrightTools.kit.smooth_1D
- WrightTools.kit.smooth_1D(arr, n=10, smooth_type='flat') ndarray [source]
Smooth 1D data using a window function.
Edge effects will be present.
- Parameters:
arr (array_like) – Input array, 1D.
n (int (optional)) – Window length.
smooth_type ({'flat', 'hanning', 'hamming', 'bartlett', 'blackman'} (optional)) – Type of window function to convolve data with. ‘flat’ window will produce a moving average smoothing.
- Returns:
Smoothed 1D array.
- Return type:
array_like