casacore
Static Public Member Functions | Private Member Functions | List of all members
casacore::Smooth< T > Class Template Reference

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. More...
 
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 More...
 

Private Member Functions

 Smooth ()
 

Detailed Description

template<class T>
class casacore::Smooth< T >

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.

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

self-explanatory

Synopsis

Perform smoothing on Vectors or Arrays

Example

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
static void hanning(Vector< T > &out, Vector< Bool > &outmask, Vector< T > &in, Vector< Bool > &mask, Bool TrueIsGood, Bool relaxed=True)
Hanning smoothing.
const Bool False
Definition: aipstype.h:44
const Bool True
Definition: aipstype.h:43

Motivation

This is used, e.g., for visibilities in spectral channel vectors.

To Do

Definition at line 86 of file Smooth.h.

Constructor & Destructor Documentation

◆ Smooth()

template<class T >
casacore::Smooth< T >::Smooth ( )
inlineprivate

Definition at line 88 of file Smooth.h.

Member Function Documentation

◆ hanning() [1/2]

template<class T >
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

◆ hanning() [2/2]

template<class T >
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.


The documentation for this class was generated from the following file: