Added one sample option on wavelet functions