How does "findpeak" work? How does it ignore the unwanted peaks?

조회 수: 1 (최근 30일)
Malahat Mehraban
Malahat Mehraban 2021년 6월 21일
댓글: Malahat Mehraban 2021년 6월 21일
Hi everyone,
I am working on a flowchart to show how the "findpeak" works in MATLAB. I want to know that how the function ignores the peaks that don't meet the conditions?
Suppose that there are two conditions for detecting a R peak in an ECG (min pick distace and min peak height). At the first step I want to examine min peak distance; which peaks will be ignored between two peaks? the smallest one? and which peaks will be selected as the right R peak? the biggest one?
I appreciate every comments and suggestions in advance.

채택된 답변

dpb
dpb 2021년 6월 21일
The doc for 'MinPeakDistance' explains that it picks the tallest in the signal overall and then ignores everything else within the distance value from that location -- doesn't matter what size they might be; maybe only one pixel less; no matter, still will be ignored as if it weren't present at all.
Then it moves to the next largest and does the same thing....you'll only have left whatever is the comb filter of those that are that minimum distance apart.
Then, if anything left isn't the minimum height, you'll not get it, either.
You may be more interested in prominence than absolute height, and unless the spacing is pretty uniform or the distance between the desired patterns is sizable with respect to the minimum distance, that may not be the best discriminator to use, either.
  댓글 수: 3
dpb
dpb 2021년 6월 21일
Beyond the documentation provided, I'm unaware of it if there is (not that there isn't somebody's blog or something somewhere, I just don't know).
If you're really, really interested, it is implemented as an m-file and you can read the code to see exactly how it works. I've looked at pieces to see about some specifics on occasion, but not recently enough to be able to expound in depth from recollection.
Malahat Mehraban
Malahat Mehraban 2021년 6월 21일
Thank you. your answers were informative and helpful.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by