waveletScattering function R2021a change to number of filters output
Mostrar comentarios más antiguos
I’m inquiring on if I should expect a discrepancy I’m seeing between my Wavelet Scattering Tansform (WST) results compared to results from an older MATLAB version due to the R2021a change to the "waveletScattering" function where:
"the method for determining how to space linearly those frequencies lower than the invariance scale has also changed. .... [The] number of filters you obtain may be different than in previous releases."
I am comparing my results using MATLAB R2021a to a paper who analyzed the same data using MATLAB R2018b. They reported to have 75 paths in their WST object, while mine has 40 paths. We bothed used data that is 250 samples long and sampled at 360Hz with an invariance scale of 0.5s.
sn = waveletScattering('SignalLength',250, 'InvarianceScale',0.5,'SamplingFrequency',360);
spaths = paths(sn);
num_paths = size(spaths{1},1) + size(spaths{2},1) + size(spaths{3},1)
If you ran this script in MATLAB R2018b, would it return "num_paths = 75" due to the differences in the "waveletScattering" function? Is there a way to change the resolution in the paths direction (not the scattering time windows direction) to get "num_paths = 75" in R2021a?
1 comentario
Respuestas (1)
Gokul Nath S J
el 19 de Abr. de 2023
Hi William George,
Based on my understanding, it seems that you would like to know the result if the paths were calculated in R2018b.
Please note that 'paths' function was not available in R2018b. For verification, if you run the same script in R2018b, it will throw out an error message. Further please note that, there is an optimized way to compute the paths as described below,
sn = waveletScattering('SignalLength',250, 'InvarianceScale',0.5,'SamplingFrequency',360);
[spaths, npaths] = paths(sn);
num_paths = sum(npaths);
For further information, kindly refer to the following link.
Thanks,
Gokul Nath S J
2 comentarios
William George
el 19 de Abr. de 2023
Editada: William George
el 19 de Abr. de 2023
William George
el 19 de Abr. de 2023
Categorías
Más información sobre Continuous Wavelet Transforms en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!