LTTB algorithm for downsampling time series (R implementation)
LTTB algorithm for downsampling time series (Numpy implementation)