Class LTThreeBuckets
java.lang.Object
com.ggalmazor.ltdownsampling.LTThreeBuckets
The LTThreeBuckets class is the main entry point to this library.
None of the methods in this class will mutate input lists or their elements.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a downsampled version of the providedinputlist.Returns a downsampled version of the providedinputlist.
-
Method Details
-
sorted
Returns a downsampled version of the providedinputlist.Notes:
- The input list must be sorted.
- This method doesn't mutate the input list or any of its elements.
The output list will have
desiredBuckets + 2elements: one per bucket plus the first and last points of the original series. -
sorted
Returns a downsampled version of the providedinputlist.Notes:
- The input list must be sorted.
- This method doesn't mutate the input list or any of its elements.
The output list will have
desiredBuckets + 2elements: one per bucket plus the first and last points of the original series.
-