apskhem / cratesinquire

crates.io insight and explorer.
https://cratesinquire.info
Apache License 2.0
8 stars 1 forks source link

Interpolation of downloads goes negative and backwards in time #2

Closed dtolnay closed 2 years ago

dtolnay commented 2 years ago

In this graph the teal curve appears to backwards in time (around november 8 and december 4) and negative (november 21).


Screenshot from 2021-12-13 10-22-29

apskhem commented 2 years ago

This is because I chose to use Cardinal spline. I changed it to be Catmull–Rom spline. I wish that it could be well-performed.

dtolnay commented 2 years ago

Thanks, this looks decent now:


Screenshot from 2021-12-14 12-56-34