# Wave Form Average

1. Aug 22, 2009

### last_to_go

1. The problem statement, all variables and given/known data

My son is working on a school-related project. He is being asked how to compute the average of both systolic and diastolic (heart rate) values. The assignment eludes to averaging measurements over an entire wave form (visualize a heart rate monitor you'd see on ER). The systolic values would be the peak values on a graph whereas the distolic values would be the non-peak values. He needs to be able to disregard minor blips between the actual high and low values. What type of formula/algorithm would work for determining the average of these wave forms?

2. Relevant equations

I am sorry, I don't have anything to provide.

3. The attempt at a solution

My son has created an algorithm within his computer model, but it doesn't identify and disregard the "blips" that occur inbetween the actual high and low values.

Any help with this would be appreciated......I am simply attempting to help my son while he catches up on some sleep...he's been working for hours/days on his program. Thank you!

2. Aug 22, 2009

### Gib Z

Welcome to Physics Forums!

I think I have a method your son could implement to isolate the high and low points out of the rest of the curve, although I can only explain the mathematics of it, hopefully he will see how to program it, it should be pretty straight forward:

Basically we will be using the idea of the derivative, which is the value of the gradient of the tangent to the curve at a point. More information is easily found on derivatives on the internet. Basically its value at a point x=a on the curve y= f(x) is calculated by:

$$f'(a) = \lim_{h\to 0} \frac{ f(a+h) - f(a)}{h}$$

where f'(a) denotes the derivative of f(x) at x=a. The "lim of h to 0" part basically means make h a very small number. Something effective enough for this purpose should be $$f'(a) = \frac{f(a+ 0.0000001) - f(a)}{0.0000001}$$.

You can easily imagine that if we drew the tangent at a peak point on the curves, it will be a horizontal line. In other words, its tangent will be zero.

So basically your son can isolate those points on the curve by specifying he only wants the points where the derivative is equal to zero.

I hope that helps!

3. Aug 22, 2009

### last_to_go

Thank you for your suggestion. I will print it out and show it to him. He attends a local college in MN and has been working on a summer project to display heart pressure readings on a person's cell phone.....a bit beyond my comprehension, however I was doing my own research for him on the internet and couldn't focus on the best approach (a bit beyond my comprehension level....I kept getting diverted to RMS calculations...). He's been very diligent in working on the overall solution all summer outside of his summer job (burning the midnight oil). I do appreciate your response. Have a great weekend!

4. Dec 2, 2009

### last_to_go

I wanted to get back to the person that assisted me with my question. My son did complete his project earlier this year and recently learned that he placed 2nd in the development contest. Not too bad for an entering Sophmore if I may say (parent, of course). Although I'm not sure he used your advice I am certain that all input was helpful and definitely appreciated. And, from his father, thank you for your help.

Tom

5. Dec 3, 2009

### Gib Z

Oh that was me! I wouldn't mind knowing it anything I suggested to him was used lol. Good work on 2nd place! 1st next time I'm sure =]