Hacker News new | past | comments | ask | show | jobs | submit login

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000... is a good algorithm to use to keep peaks. At a maximum you need 4x the chart width data points. In practice, you can easily reduce that. I've implemented the algorithm before and it can be done in linear time.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: