Click here to Skip to main content
15,881,380 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionRe: Fast path finding algorithm Pin
AspDotNetDev27-May-11 9:08
protectorAspDotNetDev27-May-11 9:08 
AnswerRe: Fast path finding algorithm Pin
David I Carter31-May-11 22:29
David I Carter31-May-11 22:29 
AnswerRe: Fast path finding algorithm Pin
Member 41945939-Aug-11 19:42
Member 41945939-Aug-11 19:42 
GeneralRe: Fast path finding algorithm Pin
Member 419459310-Aug-11 3:53
Member 419459310-Aug-11 3:53 
AnswerRe: Fast path finding algorithm Pin
BobJanova1-Jun-11 2:01
BobJanova1-Jun-11 2:01 
AnswerRe: Fast path finding algorithm Pin
dasblinkenlight1-Jun-11 6:52
dasblinkenlight1-Jun-11 6:52 
AnswerRe: Fast path finding algorithm Pin
YDaoust2-Jun-11 0:05
YDaoust2-Jun-11 0:05 
QuestionReal time peak identification Pin
Wjousts25-May-11 4:32
Wjousts25-May-11 4:32 
I have a stream of data coming from a respiration belt and I need a good, robust algorithm to help me identify the peaks and troughs as the data is coming in (i.e. live data, not later analysis). The data is roughly sinusoidal with a period of a maybe 2 - 4 seconds. The data is polled about once every 100 ms. The data is noisy, but it's not too bad. We sometimes see sudden spikes if the person wearing the belt fidgets around, but if they are sitting still, it's fairly clean.

Obviously you can't identify a peak or a trough until after it's happened, but I'm trying to find the best and fastest way to identify them so we can use them as a trigger for something else. I understand that there are trade-offs involved.

I tried calculating an instantaneous derivative by comparing the change in signal between the current point and the second to last point and then looking for when that value falls within some threshold. That kinda works, but is a bit touchy. I tried to improve it by checking that when a point falls within the threshold it also has the opposite sign to the last identified peak/trough to try and eliminate having multiple points right around the peak identified as the peak. That helps a little. I also tried introducing, basically a filter, such that when a peak (or trough) is identified, I stop looking for another one for some period of time (say 1 second).

Does anybody have any better ideas?
AnswerRe: Real time peak identification PinPopular
AspDotNetDev25-May-11 5:06
protectorAspDotNetDev25-May-11 5:06 
GeneralRe: Real time peak identification Pin
Wjousts25-May-11 7:54
Wjousts25-May-11 7:54 
AnswerRe: Real time peak identification PinPopular
Luc Pattyn25-May-11 5:30
sitebuilderLuc Pattyn25-May-11 5:30 
GeneralRe: Real time peak identification Pin
Wjousts25-May-11 8:43
Wjousts25-May-11 8:43 
AnswerRe: Real time peak identification Pin
Luc Pattyn25-May-11 13:45
sitebuilderLuc Pattyn25-May-11 13:45 
GeneralRe: Real time peak identification Pin
Wjousts26-May-11 8:45
Wjousts26-May-11 8:45 
AnswerRe: Real time peak identification Pin
Luc Pattyn26-May-11 9:09
sitebuilderLuc Pattyn26-May-11 9:09 
GeneralRe: Real time peak identification Pin
Wjousts26-May-11 9:20
Wjousts26-May-11 9:20 
AnswerRe: Real time peak identification Pin
Luc Pattyn26-May-11 9:44
sitebuilderLuc Pattyn26-May-11 9:44 
AnswerRe: Real time peak identification Pin
Peter_in_278025-May-11 13:38
professionalPeter_in_278025-May-11 13:38 
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 

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.