casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::RFRowClipper Class Reference

RFRowClipper: flags rows based on their noise level. More...

#include <RFRowClipper.h>

Inheritance diagram for casa::RFRowClipper:
casa::FlaggerEnums

List of all members.

Public Member Functions

 RFRowClipper (RFChunkStats &chunk, RFFlagCube &flag, Float clip, uInt hw=6, uInt maxp=5)
 construct from a chunk accessor and flag cube.
 ~RFRowClipper ()
 destructor
void init (uInt ni, uInt nt)
 initialize for an [NI,NT] matrix
void cleanup ()
 deallocate matrices
void reset ()
 reset at start of pass
Float sigma0 (uInt ifr, uInt it)
 returns the current noise estimate
void setSigma (uInt ifr, uInt it, Float level)
 sets a new noise estimate
void markSigma (uInt ifr)
 marks a noise estimate as updated without changing it
Float updateSigma (uInt &ifrmax, uInt &itmax, Bool flagrows=True, bool clear_flags=true)
 recompute updated estimates and optionally do row flagging

Private Attributes

RFChunkStatschunk
RFFlagCubeflag
Float clip_level
uInt halfwin
uInt maxpass
uInt nifr
uInt ntime
Matrix< Floatsig
Matrix< Floatsig0
Vector< Boolsigupdated
LogIOos

Detailed Description

RFRowClipper: flags rows based on their noise level.

Intended use:

Internal

Synopsis

RFRowClipper accumulates per-row noise estimates in an [NIFR,NTIME] matrix. After each pass it performs flagging of rows with excessive noise (w/respect to a sliding median per IFR, over time).

Motivation

Several flagging agents produce per-row noise estimates and can flag based on them. Hence, a commmon implementation was desired.

To Do

Definition at line 65 of file RFRowClipper.h.


Constructor & Destructor Documentation

casa::RFRowClipper::RFRowClipper ( RFChunkStats chunk,
RFFlagCube flag,
Float  clip,
uInt  hw = 6,
uInt  maxp = 5 
)

construct from a chunk accessor and flag cube.

Clip is the clipping level, HW is the sliding median window half-width, MAXP is maximum iterative passes.

destructor

Definition at line 73 of file RFRowClipper.h.


Member Function Documentation

deallocate matrices

void casa::RFRowClipper::init ( uInt  ni,
uInt  nt 
)

initialize for an [NI,NT] matrix

void casa::RFRowClipper::markSigma ( uInt  ifr) [inline]

marks a noise estimate as updated without changing it

Definition at line 116 of file RFRowClipper.h.

References sigupdated, and casa::True.

reset at start of pass

void casa::RFRowClipper::setSigma ( uInt  ifr,
uInt  it,
Float  level 
) [inline]

sets a new noise estimate

Definition at line 110 of file RFRowClipper.h.

References sig, sigupdated, and casa::True.

Float casa::RFRowClipper::sigma0 ( uInt  ifr,
uInt  it 
) [inline]

returns the current noise estimate

Definition at line 105 of file RFRowClipper.h.

References sig0.

Float casa::RFRowClipper::updateSigma ( uInt ifrmax,
uInt itmax,
Bool  flagrows = True,
bool  clear_flags = true 
)

recompute updated estimates and optionally do row flagging


Member Data Documentation

Definition at line 93 of file RFRowClipper.h.

Definition at line 95 of file RFRowClipper.h.

Definition at line 94 of file RFRowClipper.h.

Definition at line 96 of file RFRowClipper.h.

Definition at line 96 of file RFRowClipper.h.

Definition at line 98 of file RFRowClipper.h.

Definition at line 98 of file RFRowClipper.h.

Definition at line 102 of file RFRowClipper.h.

Definition at line 99 of file RFRowClipper.h.

Referenced by setSigma().

Definition at line 99 of file RFRowClipper.h.

Referenced by sigma0().

Definition at line 100 of file RFRowClipper.h.

Referenced by markSigma(), and setSigma().


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