Smooth a Vector or the rows of a 2D Array taking into account flags which are supplied in a Vector/Array of the same shape. Modify the flags as necessary to mark channels for which the smoothing could not be done because needed channels were flagged. More...
#include <Smooth.h>
Static Public Member Functions | |
| static void | hanning (Vector< T > &out, Vector< Bool > &outmask, Vector< T > &in, Vector< Bool > &mask, Bool TrueIsGood, Bool relaxed=True) |
| Hanning smoothing. | |
| static void | hanning (Array< T > &out, Array< Bool > &outmask, Array< T > &in, Array< Bool > &mask, Bool TrueIsGood, Bool relaxed=True) |
| as above but calling hanningSmooth for each row of the 2D array | |
Private Member Functions | |
| Smooth () | |
Smooth a Vector or the rows of a 2D Array taking into account flags which are supplied in a Vector/Array of the same shape. Modify the flags as necessary to mark channels for which the smoothing could not be done because needed channels were flagged.
Public interface
self-explanatory
Perform smoothing on Vectors or Arrays
Smooth<Complex>::hanning(outv, // the output outFlags, // the output mask yin, // the input yinFlags, // the input mask False, // for flagging: good is not true True); // use the default scheme for producing output flags
This is used, e.g., for visibilities in spectral channel vectors.
Definition at line 86 of file Smooth.h.
| casacore::Smooth< T >::Smooth | ( | ) | [inline, private] |
| static void casacore::Smooth< T >::hanning | ( | Array< T > & | out, | |
| Array< Bool > & | outmask, | |||
| Array< T > & | in, | |||
| Array< Bool > & | mask, | |||
| Bool | TrueIsGood, | |||
| Bool | relaxed = True | |||
| ) | [static] |
as above but calling hanningSmooth for each row of the 2D array
| static void casacore::Smooth< T >::hanning | ( | Vector< T > & | out, | |
| Vector< Bool > & | outmask, | |||
| Vector< T > & | in, | |||
| Vector< Bool > & | mask, | |||
| Bool | TrueIsGood, | |||
| Bool | relaxed = True | |||
| ) | [static] |
Hanning smoothing.
1.6.1