SMOOTHING FUNCTION FOR FOURIER AMPLITUDE SPECTRUM

版本 1.0.3 (135.4 KB) 作者: Dr. Erol Kalkan, P.E.
smoothSpectra offers different smoothing options for Fourier amplitude spectrum. Default window function is Konno-Ohmachi.
552.0 次下载
更新时间 2019/2/7

查看许可证

SMOOTHING FUNCTION FOR FOURIER AMPLITUDE SPECTRUM

smoothSpectra offers various different window smoothing options for Fourier amplitude spectrum (FAS) including boxcar, triangle, Parzen, Hann, Hanning, Hamming, Gaussian. Default window function is Konno-Ohmachi (see Konno and Ohmachi (1998), page 234), which symmetric in log space. The smoothing is performed by convolving the window function with the FAS. Three examples are provided in demo.m file.

USAGE:

[smoothFAS] = smoothSpectra(Y,varargin)

STATIC INPUT:

Y = vector of Fourier amplitudes (1xn or nx1)

VALID PROP_NAME / PROP_VAL PAIRS:
-----------------------------------------
'w' --> (1x1)-[numeric]-[default:40]
'b' --> (1x1)-[numeric]-[default: 20]
'method' --> [text]-[default: konno-ohmachi]
'debug' --> [text]-[default: False]

NOTES:

w = width of window function (e.g., 100)

b = bandwidth coefficient of konno-ohmachi window (e.g., 20)

method = window function (e.g., boxcar, gaussian, hamming, hann,
hanning, konno-ohmachi, parzen, triang)

debug = 'True' for print debug messages

OUTPUT:

smoothFAS = smoothed vector of Fourier amplitudes (1xn)

EXAMPLES:

see demo.m file

REQUIREMENTS:

smoothSpectra function does not require any MatLAB toolbox

ACKNOWLEDGEMENT:

In preparing this function, I benefitted from konv.m function written by Ali Jadoon.

If you find this code useful for your application, please don't forget to rate it.
For questions / suggestions / comments and bug reports: kalkan76@gmail.com

引用格式

Dr. Erol Kalkan, P.E. (2024). SMOOTHING FUNCTION FOR FOURIER AMPLITUDE SPECTRUM (https://www.mathworks.com/matlabcentral/fileexchange/70217-smoothing-function-for-fourier-amplitude-spectrum), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2018b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Geology 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.3

Updated notes

1.0.2

Updated notes

1.0.1

Updated notes

1.0.0