d_sample 1.0.2
d_sample: ^1.0.2 copied to clipboard
Downsampling algorithms for time series data(LTOB, LTTB, LTD, OSI-PI Plot, etc.)Implemented in Dart
About this project #
Downsampling algorithms for time series data(LTOB, LTTB, LTD, OSI-PI Plot, etc.)Implemented in Dart. The current project is the Dart version of this project
Input and thresholds #
- Supply data in ascending
samplingOrder, with finitesamplingValuevalues - A nonpositive threshold returns an empty list; a threshold at least as large as the input returns the input
- LTTB, LTOB and LTD return the requested number of points when downsampling; threshold 1 keeps the first point, and threshold 2 keeps both endpoints
- MAXMIN and PI Plot interpret the threshold as the number of time buckets, selecting up to 2 and 4 points per bucket respectively; the result may exceed the threshold
- TimeGap selects both sides of significant gaps and may exceed the threshold by one point; MixedAlgorithm returns the sorted union of its component results