Moavg

From Pnb
Revision as of 09:48, 8 July 2010 by Eriks (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.


moavg.m


AC9/ACS Mfiles