Public Member Functions |
| StatWT (const ROVisibilityIterator &vi, const MS::PredefinedColumns datacol=MS::DATA, const String &fitspw="*", const String &outspw="*", const Bool dorms=false, const uInt minsamp=2, const vector< uInt > selcorrs=vector< uInt >()) |
| Construct an object that will set the weights and sigmas of vi's MeasurementSet, as selected by outspw, according to the scatter of the visibilities selected by fitspw.
|
Copy construct | StatWT (const StatWT &other) |
Destructor *virtual | ~StatWT () |
virtual Assignment StatWT & | operator= (const StatWT &gw) |
virtual asyncio::PrefetchColumns * | prefetchColumns () const |
This is where all the work
gets done *virtual Bool | process (VisBuffGroup &vbg) |
| This is where all the work gets done!
|
Private Member Functions |
| StatWT () |
| Disable null c'tor.
|
Bool | update_variances (std::map< uInt, Vector< uInt > > &ns, std::map< uInt, Vector< Complex > > &means, std::map< uInt, Vector< Double > > &variances, const VisBuffer &vb, const Cube< Bool > &chanmaskedflags, const uInt maxAnt) |
Bool | apply_variances (VisBuffer &vb, std::map< uInt, Vector< uInt > > &ns, std::map< uInt, Vector< Double > > &variances, const uInt maxAnt) |
| ns and variances are effectively const here, but declaring them that way would take some gymnastics.
|
uInt | hashFunction (const Int ant1, const Int ant2, const Int maxAnt) |
| Compute a baseline (row) index (ant1, ant2).
|
Private Attributes |
MS::PredefinedColumns | datacol_p |
| Initialized by c'tor:
|
String | fitspw_p |
String | outspw_p |
Bool | dorms_p |
uInt | rowsdone_p |
std::set< Int > | outspws_p |
uInt | minsamp_p |
| Otherwise, use the standard sample variance.
|
vector< uInt > | selcorrs_p |
| a variance.
|
std::map< Int, Vector< Bool > * > | fitmask_p |
| Not initialized by c'tor: std::set<Int> appliedSpWs_p;.
|
StatWT sets WEIGHT and SIGMA statistically.
Intended use:
Public interface
Prerequisite
Etymology
StatWT sets WEIGHT and SIGMA statistically.
Synopsis
Set the weights and sigmas according to the scatter of the visibilities.
To Do
Definition at line 69 of file StatWT.h.
Construct an object that will set the weights and sigmas of vi's MeasurementSet, as selected by outspw, according to the scatter of the visibilities selected by fitspw.
If dorms is true, assume that the true mean is 0. Otherwise, use the standard sample variance.
For each baseline and correlation, if fitspw does not select at least minsamp unflagged visibilities, it will be flagged and weight and sigma will not be calculated. minsamp is effectively at least 2.