Library of time series analysis functions