casa
$Rev:20696$
|
RFAUVBinner: flagging via UV binning. More...
#include <RFAUVBinner.h>
Public Member Functions | |
RFAUVBinner (RFChunkStats &ch, const RecordInterface &parm) | |
virtual | ~RFAUVBinner () |
virtual uInt | estimateMemoryUse () |
This method is called before iterating over a chunk, to inquire the expected memory use. | |
virtual Bool | newChunk (Int &maxmem) |
Called before iterating over a chunk. | |
virtual void | endChunk () |
Called once finished with a chunk. | |
virtual void | startData (bool verbose) |
Called before starting a data pass on a chunk. | |
virtual void | startDry (bool verbose) |
Called before starting a dry pass on a chunk. | |
virtual IterMode | iterTime (uInt it) |
Iteration methods for a data pass. | |
virtual IterMode | iterRow (uInt ir) |
iterRow() is called once per each row in the VisBuffer. | |
virtual IterMode | iterDry (uInt it) |
Iteration method for a dry pass. | |
virtual IterMode | endData () |
Called after a pass is completed successfully (i.e., not stopped by start or iter methods). | |
virtual IterMode | endDry () |
Called after a dry pass is complete. | |
virtual String | getDesc () |
called to obtain a short description of this RFA | |
Static Public Member Functions | |
static const RecordInterface & | getDefaults () |
Protected Member Functions | |
IPosition | computeBin (Float uv, Float y, uInt ich) |
Protected Attributes | |
Double | threshold |
uInt | min_population |
uInt | nbin_y |
uInt | nbin_uv |
Bool | binned |
Vector< RigidVector< Double, 3 > > * | puvw |
current UVW column | |
RFFloatLattice | yvalue |
lattice of yvalues [NCH,NIFR,NTIME] | |
Matrix< Float > | uvdist |
matrix of UV distances [NIFR,NTIME] | |
Vector< Float > | ymin |
ranges and bin sizes | |
Vector< Float > | ymax |
Vector< Float > | ybinsize |
Vector< Float > | uvmin |
for UV, we have individual ranges/bins per each channel | |
Vector< Float > | uvmax |
Vector< Float > | uvbinsize |
Cube< Int > | bincounts |
bin counts | |
Vector< Int > | totcounts |
RFAUVBinner: flagging via UV binning.
Internal
Definition at line 66 of file RFAUVBinner.h.
casa::RFAUVBinner::RFAUVBinner | ( | RFChunkStats & | ch, |
const RecordInterface & | parm | ||
) |
virtual casa::RFAUVBinner::~RFAUVBinner | ( | ) | [inline, virtual] |
Definition at line 70 of file RFAUVBinner.h.
IPosition casa::RFAUVBinner::computeBin | ( | Float | uv, |
Float | y, | ||
uInt | ich | ||
) | [protected] |
virtual void casa::RFAUVBinner::endChunk | ( | ) | [virtual] |
Called once finished with a chunk.
Reimplemented from casa::RFAFlagCubeBase.
virtual IterMode casa::RFAUVBinner::endData | ( | ) | [virtual] |
Called after a pass is completed successfully (i.e., not stopped by start or iter methods).
Return value: STOP to stop, DATA for another data pass, DRY for another dry pass.
Reimplemented from casa::RFAFlagCubeBase.
virtual IterMode casa::RFAUVBinner::endDry | ( | ) | [virtual] |
Called after a dry pass is complete.
Reimplemented from casa::RFAFlagCubeBase.
virtual uInt casa::RFAUVBinner::estimateMemoryUse | ( | ) | [virtual] |
This method is called before iterating over a chunk, to inquire the expected memory use.
Should return the max desired memory footprint, in MB. Available physical memory is divided between agents in proportion to their requests.
Reimplemented from casa::RFAFlagCubeBase.
static const RecordInterface& casa::RFAUVBinner::getDefaults | ( | ) | [static] |
Reimplemented from casa::RFAFlagCubeBase.
virtual String casa::RFAUVBinner::getDesc | ( | ) | [virtual] |
called to obtain a short description of this RFA
Reimplemented from casa::RFAFlagCubeBase.
virtual IterMode casa::RFAUVBinner::iterDry | ( | uInt | ) | [virtual] |
Iteration method for a dry pass.
Called once per each time slot. Return value: STOP to finish iterating, CONT/DRY to continue, or DATA to cancel the dry pass and request another data pass.
Reimplemented from casa::RFAFlagCubeBase.
virtual IterMode casa::RFAUVBinner::iterRow | ( | uInt | ) | [virtual] |
iterRow() is called once per each row in the VisBuffer.
Iterating over rows is perhaps preferrable in terms of performance, at least for data iterations.
Reimplemented from casa::RFABase.
virtual IterMode casa::RFAUVBinner::iterTime | ( | uInt | ) | [virtual] |
Iteration methods for a data pass.
Either or both may be implemented. iterTime() is called once for each new VisBuffer (= new time slot) Return value: STOP to finish iterating, CONT/DATA to continue, or DRY to cancel the data pass and request a dry pass.
Reimplemented from casa::RFAFlagCubeBase.
virtual Bool casa::RFAUVBinner::newChunk | ( | Int & | ) | [virtual] |
Called before iterating over a chunk.
Returns True if agent will process this chunk, or False if this the agent is unable to process it. (this can happen if, e.g., the requisite correlations are not present). The Int & maxmem argument is the number of MB memory which is still available in the memory pool. The agent class should plan its memory use accordingly, and subtract its expected memory use from maxmem. In effect, the agent "reserves" some amount of memory. This is used by RedFlagger to contain the total memory footprint. Note that only a rough reckoning is sufficient, so only bother estimating the biggest data structures. See implementations in RFADiffBase and RFATimeMedian for good examples. nAgent is the total number of agents.
Reimplemented from casa::RFAFlagCubeBase.
virtual void casa::RFAUVBinner::startData | ( | bool | ) | [virtual] |
Called before starting a data pass on a chunk.
Reimplemented from casa::RFAFlagCubeBase.
virtual void casa::RFAUVBinner::startDry | ( | bool | ) | [virtual] |
Called before starting a dry pass on a chunk.
Reimplemented from casa::RFAFlagCubeBase.
Cube<Int> casa::RFAUVBinner::bincounts [protected] |
bin counts
Definition at line 107 of file RFAUVBinner.h.
Bool casa::RFAUVBinner::binned [protected] |
Definition at line 92 of file RFAUVBinner.h.
uInt casa::RFAUVBinner::min_population [protected] |
Definition at line 90 of file RFAUVBinner.h.
uInt casa::RFAUVBinner::nbin_uv [protected] |
Definition at line 91 of file RFAUVBinner.h.
uInt casa::RFAUVBinner::nbin_y [protected] |
Definition at line 91 of file RFAUVBinner.h.
Vector< RigidVector<Double,3> >* casa::RFAUVBinner::puvw [protected] |
current UVW column
Reimplemented from casa::RFDataMapper.
Definition at line 95 of file RFAUVBinner.h.
Double casa::RFAUVBinner::threshold [protected] |
Definition at line 89 of file RFAUVBinner.h.
Vector<Int> casa::RFAUVBinner::totcounts [protected] |
Definition at line 108 of file RFAUVBinner.h.
Vector<Float> casa::RFAUVBinner::uvbinsize [protected] |
Definition at line 103 of file RFAUVBinner.h.
Matrix<Float> casa::RFAUVBinner::uvdist [protected] |
matrix of UV distances [NIFR,NTIME]
Definition at line 100 of file RFAUVBinner.h.
Vector<Float> casa::RFAUVBinner::uvmax [protected] |
Definition at line 103 of file RFAUVBinner.h.
Vector<Float> casa::RFAUVBinner::uvmin [protected] |
for UV, we have individual ranges/bins per each channel
Definition at line 103 of file RFAUVBinner.h.
Vector<Float> casa::RFAUVBinner::ybinsize [protected] |
Definition at line 103 of file RFAUVBinner.h.
Vector<Float> casa::RFAUVBinner::ymax [protected] |
Definition at line 103 of file RFAUVBinner.h.
Vector<Float> casa::RFAUVBinner::ymin [protected] |
ranges and bin sizes
Definition at line 103 of file RFAUVBinner.h.
RFFloatLattice casa::RFAUVBinner::yvalue [protected] |
lattice of yvalues [NCH,NIFR,NTIME]
Definition at line 98 of file RFAUVBinner.h.