Implementing timeseries analysis functions from the Eckner paper. https://eckner.com/papers/unevenly_spaced_time_series_analysis.pdf