octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45056] pkg signal: peak detection not working


From: Juan Pablo Carbajal
Subject: [Octave-bug-tracker] [bug #45056] pkg signal: peak detection not working for very simple and smooth data
Date: Fri, 08 May 2015 17:11:34 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36

Follow-up Comment #2, bug #45056 (project octave):

Assuming you called:


[p,l,e] = findpeaks(y,"MinPeakDistance",100);


Indeed it fails to discover the peaks. This is due to the fact that your
signal is highly oversampled. you can subsample it ot improve results, but I
couldn't get somethign really good. therefore I improved findpeaks to consider
the case of oversampled data.

You can wait for the next release of singal, but since it is really a quick
fix, you can edit your findpeaks.m:
Change line 157 to read


idx = find (df1.*[df1(2:end); 0] <= 0 & [df2(2:end); 0] < 0);


@devs: please close this bug.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45056>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]