Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

DRAFT: Experiments with better resampling algorithms#210

Draft
lyricnz wants to merge 4 commits intocointop-sh:masterfrom
lyricnz:feature/better-resample
Draft

DRAFT: Experiments with better resampling algorithms#210
lyricnz wants to merge 4 commits intocointop-sh:masterfrom
lyricnz:feature/better-resample

Conversation

@lyricnz
Copy link
Copy Markdown
Collaborator

@lyricnz lyricnz commented Oct 8, 2021

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

@lyricnz
Copy link
Copy Markdown
Collaborator Author

lyricnz commented Oct 8, 2021

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
Copy link
Copy Markdown
Collaborator Author

lyricnz commented Oct 8, 2021

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

@lyricnz
Copy link
Copy Markdown
Collaborator Author

lyricnz commented Oct 9, 2021

Raised #212 for the spurious 0

@miguelmota
Copy link
Copy Markdown
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants