Wavelet-based routines for time series analysis