What I am trying to do is create a program to take to colums of data in a in.txt file, the first colum being time and the second being the height of the graph of bllod pressure. So far I have identified the following steps that I need to do
First I need to identify a threshold so that it does not have to search through every number
Once the number is above that threshold I need to search for ____width of time
Next I need to find the local max
Now I need to associate the local max with the time value
Now I need to go back and move on to another search of the data
(here I could create a loop I think storing the data of max as a diffrent max1, max 2)
Outside of the looop I need another one to
Take time of max1-max2 ….
Now find 60/difference1...= HR
Print out heart rates
I am having issues making this happen, any info or clues to the right track would be helpful!
So far I can only find the max within data and can't find only a threshold or move over to the next curve.