simplified conditional statements in wavelet_factory_1d