I will try to explain as best as I can.
I am graphing data acquired from an external instrument.
There is a transition in the instrument which is causing a "step" in the data. I need to apply a formula to "smooth" out the data.
I need to take the last 5 data points before the transition (284-288) and get the average of those points. Then get the average of the first 3 data point after the transition (289-291). Then I need to average those 2 averages and mutliply it to 312 points after the transition. My problem is that I am not sure how to write this in code. Any help is greatly appreciated.
SNT
I am graphing data acquired from an external instrument.
There is a transition in the instrument which is causing a "step" in the data. I need to apply a formula to "smooth" out the data.
I need to take the last 5 data points before the transition (284-288) and get the average of those points. Then get the average of the first 3 data point after the transition (289-291). Then I need to average those 2 averages and mutliply it to 312 points after the transition. My problem is that I am not sure how to write this in code. Any help is greatly appreciated.
SNT