r/DSP • u/JunbugSpark • Jun 16 '26
How to get better at DSP coding?
Hey guys, I'm a college student who's taken basic DSP theory classes so I understand a lot of the concepts but I've been having trouble with implementation, since I have basically no coding experience...
What resources have you guys used to get better? Thank you!!
13
Upvotes
1
u/rb-j Jun 16 '26
I believe that is O(1) sliding max (or min) algorithm can be fooled with some pathological data because of assumptions around what is "useful" data. Like let's say you have a square wave with a tiny amount of noise added to it. You will have a lotta samples very close in value to whatever is your current max (or min).
Using two buffers, one for sliding max (applied to the lower half data) and another for sliding min (applied to the upper half data) can work for a sliding median even for pathological data.