|
Developer Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide ave.pro
ave |
procedure ave, accumnum, [/noclear], [/quiet], [wtarray=variable], [count=variable] |
Get the average from an ongoing accumulation.
The result is put into the primary data container (buffer 0). The contents of the accum buffer are cleared as a consequence of calling ave, unless the noclear keyword is set.
Note: It is a good idea to use sclear to clear the accum buffer before using it the first time so that you can be certain it is starting from a cleared (empty) state.
sclear get,index=1 accum get,index=2 accum ave
Average some data using another accum buffer
sclear, 2 get,index=1 accum, 2 get,index=2 accum, 2 ave, 2
Average some data, look at an intermediate result
sclear get,index=1 accum get,index=2 accum ave,/noclear ; accum buffer is NOT clear here get,index=3 accum ave ; accum buffer IS clear here
Parameters | |
accumnum |
Use this accum buffer. Defaults to the primary buffer, 0. There are 4 buffers total so this value must be between 0 and 3, inclusive. |