Click here to Skip to main content
15,883,950 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Real time peak identification Pin
Luc Pattyn25-May-11 14:52
sitebuilderLuc Pattyn25-May-11 14:52 
GeneralRe: Real time peak identification Pin
Peter_in_278025-May-11 16:14
professionalPeter_in_278025-May-11 16:14 
GeneralRe: Real time peak identification Pin
Wjousts26-May-11 9:10
Wjousts26-May-11 9:10 
AnswerRe: Real time peak identification [modified] Pin
Peter_in_278029-May-11 14:17
professionalPeter_in_278029-May-11 14:17 
GeneralRe: Real time peak identification Pin
Wjousts31-May-11 3:55
Wjousts31-May-11 3:55 
AnswerRe: Real time peak identification Pin
InfRes31-May-11 21:31
InfRes31-May-11 21:31 
GeneralRe: Real time peak identification Pin
Wjousts1-Jun-11 8:15
Wjousts1-Jun-11 8:15 
AnswerRe: Real time peak identification Pin
YDaoust31-May-11 21:47
YDaoust31-May-11 21:47 
Wjousts,

your signal indeed looks nice.

If it was perfect, all you would have to do is indeed look for changes in the sign of the derivative, i.e. detect monotonous sequences (increasing then decreasing, in alternation).

Added noise causes local perturbations of this dream situation, resulting in small breaches of the monotonocity. The closer you get to the peak, the more likely they get (as the derivative gets smaller and smaller).

My way to deal with that is to consider "quasi-increasing sequences" (resp. decreasing), i.e. values that go increasing but allow a backtracking limited by a threshold value. For example, assuming a threshold of 10, the following sequence is quasi-increasing: 0, 22, 31, 27, 45, 63..., while this one is not: 0, 22, 31, 20, 45, 63... (said differently, it stops being quasi-increasing at the value 20).

This approach is more robust than mere derivative computation and you can also filter on the total increase (decrease) of the sequence. You can also limit the length of the allowed backtracking to a given number of samples.

When will it detect a peak ? When the signal value has decreased to the peak value minus the threshold.

I guess that in any case you cannot avoid having to wait some times after a peak, to be sure it is a true one.
GeneralRe: Real time peak identification Pin
Wjousts1-Jun-11 8:17
Wjousts1-Jun-11 8:17 
GeneralRe: Real time peak identification Pin
YDaoust1-Jun-11 8:47
YDaoust1-Jun-11 8:47 
AnswerRe: Real time peak identification Pin
peterchen31-May-11 22:11
peterchen31-May-11 22:11 
GeneralRe: Real time peak identification Pin
Wjousts1-Jun-11 8:22
Wjousts1-Jun-11 8:22 
AnswerRe: Real time peak identification Pin
MartinW13071-Jun-11 0:22
MartinW13071-Jun-11 0:22 
AnswerRe: Real time peak identification Pin
Skymir1-Jun-11 2:59
Skymir1-Jun-11 2:59 
AnswerRe: Real time peak identification [modified] Pin
Antonino Porcino1-Jun-11 5:56
Antonino Porcino1-Jun-11 5:56 
AnswerRe: Real time peak identification Pin
DMJ0011-Jun-11 10:12
DMJ0011-Jun-11 10:12 
GeneralRe: Real time peak identification Pin
largenqcd1-Jun-11 17:33
largenqcd1-Jun-11 17:33 
QuestionBest fit polynomial curve to non-continuous data points [Solved] Pin
Ian Shlasko23-May-11 4:43
Ian Shlasko23-May-11 4:43 
AnswerRe: Best fit polynomial curve to non-continuous data points Pin
_Erik_23-May-11 5:07
_Erik_23-May-11 5:07 
GeneralRe: Best fit polynomial curve to non-continuous data points Pin
Ian Shlasko23-May-11 5:20
Ian Shlasko23-May-11 5:20 
GeneralRe: Best fit polynomial curve to non-continuous data points Pin
_Erik_23-May-11 5:25
_Erik_23-May-11 5:25 
AnswerRe: Best fit polynomial curve to non-continuous data points Pin
Luc Pattyn23-May-11 5:20
sitebuilderLuc Pattyn23-May-11 5:20 
GeneralRe: Best fit polynomial curve to non-continuous data points Pin
Ian Shlasko23-May-11 6:02
Ian Shlasko23-May-11 6:02 
AnswerRe: Best fit polynomial curve to non-continuous data points Pin
Luc Pattyn23-May-11 6:12
sitebuilderLuc Pattyn23-May-11 6:12 
GeneralRe: Best fit polynomial curve to non-continuous data points Pin
Ian Shlasko23-May-11 7:28
Ian Shlasko23-May-11 7:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.