casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Static Public Member Functions | Private Member Functions
casa::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 casa::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 >
casa::Smooth< T >::Smooth ( ) [inline, private]

Definition at line 88 of file Smooth.h.


Member Function Documentation

template<class T >
static void casa::Smooth< T >::hanning ( Vector< T > &  out,
Vector< Bool > &  outmask,
Vector< T > &  in,
Vector< Bool > &  mask,
Bool  TrueIsGood,
Bool  relaxed = True 
) [static]

Hanning smoothing.

template<class T >
static void casa::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


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