Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Never use first differencing, that's crazy. It magnifies measurement error. Pass the signal through a high pass filter to remove trend


Or simply subtract a first-order fit. (What the matlab/numpy `detrend()` function does)

Edit: I'll note that this is the same thing as subtracting a very long-windowed low-pass filter, i.e., performing high-pass filtering.




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

Search: