{"by":"hugohadfield","descendants":45,"id":41863398,"kids":[41869987,41866638,41865327,41864206,41864541,41866942,41868662,41870953,41864781,41868638,41866406,41866448,41864025],"score":146,"text":"This little project came about because I kept running into the same problem: cleanly differentiating sensor data before doing analysis. There are a ton of ways to solve this problem, I&#x27;ve always personally been a fan of using kalman filters for the job as its easy to get the double whammy of resampling&#x2F;upsampling to a fixed consistent rate and also smoothing&#x2F;outlier rejection. I wrote a little numpy only bayesian filtering&#x2F;smoothing library recently (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;hugohadfield&#x2F;bayesfilter&#x2F;\">https:&#x2F;&#x2F;github.com&#x2F;hugohadfield&#x2F;bayesfilter&#x2F;</a>) so this felt like a fun and very useful first thing to try it out on! If people find kalmangrad useful I would be more than happy to add a few more features etc. and I would be very grateful if people sent in any bugs they spot.. Thanks!","time":1729109866,"title":"Show HN: Automated smooth Nth order derivatives of noisy data","type":"story","url":"https://github.com/hugohadfield/kalmangrad"}