Smoothing Data with a Variable Window
Hi everybody,
I am confronted with the following need (extracted from NUREG-0800, SRP, 3.7.1)
"At any frequency f , the average PSD is computed over a frequency band width of ±20 percent, centered on the frequency
f (e.g., 4 Hz to 6 Hz band width for f = 5 Hz).
Now I have a vector of equispaced points in frequency, resulting from a PSD. Say for example f=0.1, 0.2, 0.3 ... 50 Hz, and the corresponding Power Spectral Densities.
If I use the medsmooth function, I have to specify the window width, and it would be a constant window. What I need is a window that, for example, around
1 Hz is (1.2-0.8)/0.1 = 4 points and around 20 Hz should be (24-16)/0.1 = 80 points ...
Does it exist in Mathcad function for smoothing a data vector where I can specify the window width as a percent of the data value itself? Or have I to program it by myself? I have already looked at the various "smoothing" functions and quick sheets, but I do not find anything appropriate.
Thanks a lot in advance for any hints.
Best regards

