Hi,
I have a large set of data which consists of only 0s and 1s, When plotting on a graph, the 1s represent peaks, but a single peak spans over a number of data points, and sometimes briefly drops to 0 but then continues. I cant figure out which function to use to count the number of peaks in my data, given that even if it drops to zero for a certain specified time frame, it still counts as one peak. Any help would be appreciated. Hope the example below helps:
Here, the time frame for 0s between two peaks to still count as one peak is 1 second
Time(s) Data
1 0
2 0
3 0
4 0
5 0
6 1 *
7 0 * PEAK 1
8 1 *
9 1 *
10 0
11 0
12 0
13 1 * PEAK 2
14 0
15 0
16 1 *
17 1 * PEAK 3
18 1 *
19 0
20 0
21 1 * PEAK 4
22 1 *
23 0
24 0
Bookmarks