LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Removing false peaks using Peak Detection efficiently!

Hi,

Ok, one time I already have clean signal peaks. I get the interval between each peak. But sometimes it gets some false peaks from noise. So I need to apply one system to check pulses outside 10-20% from the previous peak, like the mean value of signal.

I need to find these bad points and sum them and divide in any points to fix the lenght of sum of all the points. So the data is not altered in lenght. Its no so important to add new points if it fix to the signal correctly.

photo_2016-11-03_19-16-57.jpg

 

It is the example attached. I would like to get the red line (data filtered plot).

In the example I am trying to get the points out the box (10% from previous value). In this case, index= 164, 165, 166.

I would need to sum them and split in several parts similar to mean previous value but using the total sum fixed for no modify the data lenght and it maintains the correct points in the same time.

The sum of 164,165,166 = 1.8331s.  

The mean of previous 5 data values is around 0.45. So I need to divide 1.8331/0.45 =  4.073. So It should add 4 values with the extra time to each other to fix the 1.8331. 

In the next group data outbox i need to find the group and some times it is not i+1, i+2,.. if you check the next values is 284, 285, 287, 291, 292, 293, 294, 299, 300. Here the 285 jump to 287. I should get 285,286 and 287 and do the sum, division and fit the times...

I attached one example, I got the possible out values but getting the groups it more dificult to make and fit the data.

Can anyone advise me the best way to do it?.

Thanks for help, guys!.

Regards.

 

0 Kudos
Message 11 of 11
(686 Views)