Tags

01.13.2016

Today I look at the data collected in .csv file again and think about where I should start. Because the values demonstrated in each column correspond to the voltages of each sensor, my task is actually to find the relative maxima/minimum of those values in certain intervals as they are the peaks of the waves, and then counting how many maxima/minima there are in order to get the frequency values. It hence poses some questions:
1. What is the reasonable interval to consider all the significant relative maxima/minima?
2. What is the minimum difference between values to make it a significant relative maxima/minima, as when the data is displayed in graph, should we count the very small peaks?

I try to look up some Python codes that have function of finding relative maxima/minima. I think StackOverflow has some good ones but I still have to remodel them to fit with what I look for:
http://stackoverflow.com/questions/4624970/finding-local-maxima-minima-with-numpy-in-a-1d-numpy-array
http://stackoverflow.com/questions/18898694/python-how-to-get-local-maxima-values-from-1d-array-or-list
http://stackoverflow.com/questions/21321274/how-do-i-find-the-relative-maximum-in-a-function

Comments