Relative Content

Tag Archive for pythonsignal-processing

Difficulty detecting peak points in PSD graph using derivative method

I’m working on a signal processing task where I need to detect peak points in a Power Spectral Density (PSD) graph within specific frequency ranges (Freqs[0] to Freqs[2]). I’m using Python and calculating the derivative to find where the slope changes from positive to negative, which I expect to correspond to peaks. However, my code doesn’t seem to reliably catch the peaks, especially within the regions where I’ve plotted red, green, and blue lines on the graph. It is okay the peak is in range of +- 0.2Hz in Freqs[0] to Freqs[2]