opticaldynamics Posted October 5, 2009 Share Posted October 5, 2009 Hey, I have a pressure vs. Time graph plotting my pressure data from a reactor. The line is pretty jumpy though, from the changing voltage data. How can I average out my pressure data so I can get a more accurate value for the pressure? Link to comment Share on other sites More sharing options...
AzeoTech Posted October 5, 2009 Share Posted October 5, 2009 The easiest way is to use the smooth function. So if your Y expression is "pressure", make it "smooth(pressure,5)" where 5 is the number of points you'd like to average over. Higher values make smoother plots, but less detail. Its a running average, so each point is the average of the last x points and so there is overlap. If you don't want overlap, use boxcar() instead. Link to comment Share on other sites More sharing options...
ccdubs Posted October 5, 2009 Share Posted October 5, 2009 A form of averaging that I use that requires very little memory use is the following: Avg = LastAvg - (LastAvg - CurrentValue)/X If X is 1 you get the current value, the larger the value of X the longer the averaging time. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.