Helper class for MSFlagger with templated static function. More...
#include <MSSelUtil.h>
Static Public Member Functions | |
static Array< Float > | diffData (const Array< T > &data, const Array< Bool > &flag, const Array< Bool > &flagRow, Int diffAxis, Int window, Bool doMedian=False) |
Compute the absolute difference of the data, subtracting either the previous value (window==2) or the average over the window (window>2). |
Helper class for MSFlagger with templated static function.
Internal
Helper class for MSFlagger/DOms with templated static function to difference data in one of two directions.
Definition at line 47 of file MSSelUtil.h.
static Array<Float> casacore::MSSelUtil< T >::diffData | ( | const Array< T > & | data, | |
const Array< Bool > & | flag, | |||
const Array< Bool > & | flagRow, | |||
Int | diffAxis, | |||
Int | window, | |||
Bool | doMedian = False | |||
) | [static] |
Compute the absolute difference of the data, subtracting either the previous value (window==2) or the average over the window (window>2).
If doMedian==True is specified, the median difference over the window is returned for window>2. Takes flagging into account. diffAxis==2,3: row or time, diffAxis==1: channel Handles 3d and 4d data arrays.