casacore::Smooth< T > Class Template Reference

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>

List of all members.

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 ()

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 

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

template<class T >
casacore::Smooth< T >::Smooth (  )  [inline, private]

Definition at line 88 of file Smooth.h.


Member Function Documentation

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

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1