clean up cauchy_wavelet code