Closed fietew closed 7 years ago
Has this also to be considered in SFS_monochromatic/driving_function_mono_localwfs.m
?
If you would like to use only the tapering weights and exclude the integration weights you might also considering to use tapering_window()
instead of secondary_source_tapering()
. This is actual used in the latter, have a look.
For the time domain the code would then look like this:
wtap = tapering_window(x0s,conf);
and you can remove the x0tmp = secondary_source_tapering(x0s,conf);
line.
For the frequencz domain you could change it to
wtap = secondary_source_tapering(xtmp,conf);
Dmatrix(xdx,idx) = driving_function_mono_wfs(xtmp,xv(idx,1:3),'fs',f,conf) .* wtap;
and remove the x0(:,7) = 1;
line. In my opinion the result would be easier to understand.
Ah, cool. I will change both functions.
As
x0s(:,7)
also contains the integration weight of the secondary source, the influence of the tapering has to be computed by normalising the result to the original integration weight.