predict-idlab / tsdownsample

High-performance time series downsampling algorithms for visualization
MIT License
153 stars 14 forks source link

Is a constant sampling rate required? #75

Open lcs-crr opened 4 months ago

lcs-crr commented 4 months ago

In your Usage window, it says that a constant sampling rate is assumed. Is that generally the case, or just in the example? Under Limitations and Assumptions nothing is mentioned, hence the question :)

jvdd commented 4 months ago

Nope, this is not required :)

This library assumes a constant sampling rate if only y is passed to the downsample function. If both x and y are passed, the x data is used to determine the bin sizes / find gaps when downsampling.

Hope this answers your question!

lcs-crr commented 3 months ago

Hi Jeroen, but the output data remains variably sampled right? Is there a way to convert to a fixed sample rate when remapling?