Difference between revisions of "Moavg"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
− | [[ | + | [[moavg.m]] |
[[AC9/ACS Mfiles]] | [[AC9/ACS Mfiles]] |
Latest revision as of 09:48, 8 July 2010
Overview
This function is called in the dspike script depending on certain conditions. The boxcar moving average moavg function is passed in the matrix of the specific file being despiked, the flag of .01 and a trend of 15 which are hard coded; the row, column, difference, and number of rows in the data to be processed. The flag is the max set difference between two values in the same column that's being despiked. If the difference is over .01 the moving average is taken over the flag 15 values.
Output is the calculated moving average of the passed in value.