lostanlen / scattering.m

Scattering.m — a MATLAB toolbox for wavelet scattering
MIT License
57 stars 11 forks source link

Long 1d signals are chunked before propagation. #22

Closed lostanlen closed 9 years ago

lostanlen commented 9 years ago

This PR implements chunking resp. unchunking loops before resp. after the propagation, in the 1d case. This increases considerably the speed of the scattering pipeline in the case of long 1d signals (>1e5 coefficients).The default

spec.size = default(opt,'size',4*max(spec.T,spec.max_scale));

is introduced. sc_unchunk is now automatically triggered at the end of the call to sc_propagate. It is a no-op if there are no chunks.