Difference between revisions of "Moavg"

From Pnb
Jump to navigation Jump to search
(New page: == Overview == <big> This function is called in the dspike script depending on certain conditions. The moavg function is passed in the matrix of the specific file being despiked, the flag...)
 
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
  
<big> This function is called in the dspike script depending on certain conditions. The 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.   
+
<big> 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.
 
Output is the calculated moving average of the passed in value.

Revision as of 10:56, 26 April 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.


Actual Mfile


AC9/ACS Mfiles