cointop-sh / cointop

A fast and lightweight interactive terminal based UI application for tracking cryptocurrencies 🚀
https://cointop.sh
Apache License 2.0
4.03k stars 311 forks source link

DRAFT: Experiments with better resampling algorithms #210

Open lyricnz opened 3 years ago

lyricnz commented 3 years ago

Copy LTTB (Largest Triangle Three Buckets) from https://github.com/haoel/downsampling-algorithm and use it for downsampling. See #183

lyricnz commented 3 years ago

Current (linear interpolation) linear Screen Shot 2021-10-09 at 10 07 45 am

LTTB: lttb Screen Shot 2021-10-09 at 10 08 17 am

Noticed anomaly at far left of current resample. Zero value should not be seen.

lyricnz commented 3 years ago

Screen Shot 2021-10-09 at 10 17 29 am Same data (different currency, but shape should be same)

lyricnz commented 3 years ago

Raised #212 for the spurious 0

miguelmota commented 2 years ago

@lyricnz the chart using LTTB downsampling looks great. Are you planning on finalizing this PR?