EPVisTimeAverager.h
Classes
- EPVisTimeAverager -- A class to average VisBuffers in time (full description)
Interface
- Public Members
- EPVisTimeAverager (const Int& nAnt, const Double& interval, const Bool& prenorm, Bool doUVW=False, VBDataStructure useVisCubes=VISIBILITY)
- EPVisTimeAverager (const Int& nAnt, const Double& interval, const Bool& prenorm)
- ~EPVisTimeAverager()
- Bool doUVW(Bool val)
- VBDataStructure setDataStructure(VBDataStructure val)
- void reset()
- void accumulate (const VisBuffer& vb)
- void accumulateVisibility (const VisBuffer& vb)
- void accumulateVisCubes (const VisBuffer& vb)
- void finalizeAverage (VisBuffer& avBuf)
- Private Members
- EPVisTimeAverager()
- EPVisTimeAverager& operator= (const EPVisTimeAverager&)
- EPVisTimeAverager (const EPVisTimeAverager&)
- void initialize()
- void initializeVisibility()
- void initializeVisCubes()
- void normalize()
- void normalizeVisibility()
- void normalizeVisCubes()
- void getOutVisCube(const VisBuffer& vb, VBDataStructure which=MODELVISCUBE)
- void getInVisCube(VBDataStructure which=MODELVISCUBE)
- void copyData(VisBuffer& vb)
- Int hashFunction (const Int& ant1, const Int& ant2)
- void (EPVisTimeAverager::*Initializer)()
- void (EPVisTimeAverager::*Normalizer)()
- void (EPVisTimeAverager::*Accumulater)(const VisBuffer &)
Review Status
- Date Reviewed:
- yyyy/mm/dd
Prerequisite
Etymology
From "visibility", "time" and "averaging".
Synopsis
This class averages VisBuffers in time.
Example
Motivation
Collect all time averaging capabilities for VisBuffer averaging.
Thrown Exceptions
To Do
- averaging over other indices.
Member Description
EPVisTimeAverager (const Int& nAnt, const Double& interval, const Bool& prenorm, Bool doUVW=False, VBDataStructure useVisCubes=VISIBILITY)
Construct from the number of antennas, the averaging interval and
the pre-normalization flag
EPVisTimeAverager (const Int& nAnt, const Double& interval, const Bool& prenorm)
Null destructor
Bool doUVW(Bool val)
Set internal switches
VBDataStructure setDataStructure(VBDataStructure val)
Reset the averager
Accumulate a VisBuffer
Extract the appropriate buffer from the given VisBuffer and then
call the appropriate accumulater using the function pointer.
Finalize averaging, and return the result
Prohibit null constructor, copy constructor and assignment for now
EPVisTimeAverager& operator= (const EPVisTimeAverager&)
Initialize the next accumulation interval
Call the appropriate initializer using the function pointer.
Normalize the current accumulation
Call the appropriate Normalizer using the funtion pointer.
void getOutVisCube(const VisBuffer& vb, VBDataStructure which=MODELVISCUBE)
Extract the appropriate buffer from the supplied VisBuffer
void getInVisCube(VBDataStructure which=MODELVISCUBE)
Extract the appropriate buffer from the internal VisBuffer for
accumulation
Copy the accumulated buffer into the internal buffer of the
supplied VisBuffer.
Int hashFunction (const Int& ant1, const Int& ant2)
Hash function to return the row offset for an interferometer (ant1, ant2)
void (EPVisTimeAverager::*Initializer)()
Pointers to member function - these are set to the appropriate
values in the constructor.
void (EPVisTimeAverager::*Normalizer)()
void (EPVisTimeAverager::*Accumulater)(const VisBuffer &)