- LTTB (Largest Triangle Three Buckets): Retains visual similarity between the downsampled data and the original dataset by selecting points that form the largest triangles
- ASAP smooth: Preserves the approximate shape and larger trends while minimizing local variance between points
Samples
Downsample with LTTB
Downsample a sine wave dataset from 168 points to approximately 8 points using LTTB:Downsample with gap preservation
Use gap-preserving LTTB to downsample data while maintaining boundaries of missing regions:Downsample with ASAP smoothing
Smooth and downsample data to show larger trends while minimizing local variance:Available functions
LTTB algorithm
lttb(): downsample using the Largest Triangle Three Buckets methodgp_lttb(): downsample using LTTB while preserving gaps in data
ASAP smoothing
asap_smooth(): downsample using the ASAP smoothing algorithm