Normalized the wavelet_interp function for inputs and outputs