in reply to Re^3: Any idea for predicting the peak points in the graph by perl
in thread Any idea for predicting the peak points in the graph by perl
I was searching for a pre-made perl solution for performing peak-detection when I stumbled upon this post.
To anyone following in my footsteps know that the OP incorrectly represents information regarding the meaning of derivative and second derivatives.
Specifically the second derivative is not required nor necessarily useful in assisting with peak detection.
Second derivatives represent change to the rate of change of a series (in this context). Peak detection has little to nothing to do with such change to the rate of change (aka acceleration). Instead we are more interested in the first derivative, which is more analogous to rate of change of the originating series (aka velocity).
While performing any peak detection your goal is to capture the points in a series whereby the point has reached a local maximum or minimum. One can guesstimate that if velocity is not changing, and then subsequently reverses (changes sign) that this would likely represent a peak of some type. Further analysis using the series mean and standard deviation can help determine if this is in fact a meaningful peak to you or not (it's all circumstantial depending on your needs).
So the OP's suggestion that observing changing signs on the second derivative is not correct. Additionally while observing sign changes on the first derivative may prove useful, you will need to perform additional analysis to determine if it's the exact data you are looking for.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Any idea for predicting the peak points in the graph by perl
by BrowserUk (Patriarch) on Jul 15, 2012 at 06:41 UTC | |
by gaimrox (Initiate) on Jul 15, 2012 at 19:30 UTC | |
by BrowserUk (Patriarch) on Jul 15, 2012 at 21:16 UTC | |
by gaimrox (Initiate) on Jul 16, 2012 at 03:10 UTC | |
by BrowserUk (Patriarch) on Jul 16, 2012 at 09:36 UTC |