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

#include <FlagAgentRFlag.h>

Inheritance diagram for casa::FlagAgentRFlag:
casa::FlagAgentBase casa::async::Thread

List of all members.

Public Member Functions

 FlagAgentRFlag (FlagDataHandler *dh, Record config, Bool writePrivateFlagCube=false, Bool flag=true)
 ~FlagAgentRFlag ()

Protected Member Functions

void setAgentParameters (Record config)
 Parse configuration parameters.
bool computeAntennaPairFlags (const vi::VisBuffer2 &visBuffer, VisMapper &visibilities, FlagMapper &flags, Int antenna1, Int antenna2, vector< uInt > &rows)
 Compute flags for a given (time,freq) map.
void passIntermediate (const vi::VisBuffer2 &visBuffer)
 Extract automatically computed thresholds to use them in the next pass.
void passFinal (const vi::VisBuffer2 &visBuffer)
 Remove automatically computed thresholds for the following scans.
Double mean (vector< Double > &data, vector< Double > &counts)
 Convenience function to get simple averages.
Double median (vector< Double > &data)
 Convenience function to compute median.
void noiseVsRef (vector< Double > &data, Double ref)
Double computeThreshold (vector< Double > &data, vector< Double > &dataSquared, vector< Double > &counts)
 Convenience function to get simple averages.
void computeAntennaPairFlagsCore (pair< Int, Int > spw_field, Double noise, Double scutof, uInt timeStart, uInt timeStop, uInt centralTime, VisMapper &visibilities, FlagMapper &flags)
 Function to be called for each timestep/channel.
void robustMean (uInt timestep_i, uInt pol_k, uInt nChannels, Double &AverageReal, Double &AverageImag, Double &StdReal, Double &StdImag, Double &SumWeightReal, Double &SumWeightImag, VisMapper &visibilities, FlagMapper &flags)
void simpleMedian (uInt timestep_i, uInt pol_k, uInt nChannels, Double &AverageReal, Double &AverageImag, Double &StdReal, Double &StdImag, Double &SumWeightReal, Double &SumWeightImag, VisMapper &visibilities, FlagMapper &flags)
FlagReport getReport ()
 Function to return histograms.
FlagReport getReportCore (map< pair< Int, Int >, vector< Double > > &data, map< pair< Int, Int >, vector< Double > > &dataSquared, map< pair< Int, Int >, vector< Double > > &counts, map< pair< Int, Int >, Double > &threshold, FlagReport &totalReport, string label, Double scale)
 Function to return histograms.

Private Types

enum  optype {
  MEAN,
  ROBUST_MEAN,
  MEDIAN,
  ROBUST_MEDIAN
}

Private Attributes

Bool doflag_p
 General parameters.
Bool doplot_p
uInt nTimeSteps_p
Double noiseScale_p
Double scutofScale_p
uInt nIterationsRobust_p
 Spectral Robust fit.
vector< DoublethresholdRobust_p
Double spectralmin_p
Double spectralmax_p
uInt optype_p
void(casa::FlagAgentRFlag::* spectralAnalysis_p )(uInt, uInt, uInt, Double &, Double &, Double &, Double &, Double &, Double &, VisMapper &, FlagMapper &)
map< pair< Int, Int >, vector
< Double > > 
field_spw_frequency_p
 Store frequency to be used in Reports.
map< pair< Int, Int >, Doublefield_spw_frequencies_p
Double noise_p
 Time-direction analysis.
map< pair< Int, Int >, Doublefield_spw_noise_map_p
map< pair< Int, Int >, Booluser_field_spw_noise_map_p
map< pair< Int, Int >, vector
< Double > > 
field_spw_noise_histogram_sum_p
map< pair< Int, Int >, vector
< Double > > 
field_spw_noise_histogram_sum_squares_p
map< pair< Int, Int >, vector
< Double > > 
field_spw_noise_histogram_counts_p
Double scutof_p
 Spectral analysis.
map< pair< Int, Int >, Doublefield_spw_scutof_map_p
map< pair< Int, Int >, Booluser_field_spw_scutof_map_p
map< pair< Int, Int >, vector
< Double > > 
field_spw_scutof_histogram_sum_p
map< pair< Int, Int >, vector
< Double > > 
field_spw_scutof_histogram_sum_squares_p
map< pair< Int, Int >, vector
< Double > > 
field_spw_scutof_histogram_counts_p

Detailed Description

Definition at line 31 of file FlagAgentRFlag.h.


Member Enumeration Documentation

Enumerator:
MEAN 
ROBUST_MEAN 
MEDIAN 
ROBUST_MEDIAN 

Definition at line 33 of file FlagAgentRFlag.h.


Constructor & Destructor Documentation

casa::FlagAgentRFlag::FlagAgentRFlag ( FlagDataHandler dh,
Record  config,
Bool  writePrivateFlagCube = false,
Bool  flag = true 
)

Member Function Documentation

bool casa::FlagAgentRFlag::computeAntennaPairFlags ( const vi::VisBuffer2 visBuffer,
VisMapper visibilities,
FlagMapper flags,
Int  antenna1,
Int  antenna2,
vector< uInt > &  rows 
) [protected, virtual]

Compute flags for a given (time,freq) map.

Reimplemented from casa::FlagAgentBase.

void casa::FlagAgentRFlag::computeAntennaPairFlagsCore ( pair< Int, Int spw_field,
Double  noise,
Double  scutof,
uInt  timeStart,
uInt  timeStop,
uInt  centralTime,
VisMapper visibilities,
FlagMapper flags 
) [protected]

Function to be called for each timestep/channel.

Double casa::FlagAgentRFlag::computeThreshold ( vector< Double > &  data,
vector< Double > &  dataSquared,
vector< Double > &  counts 
) [protected]

Convenience function to get simple averages.

FlagReport casa::FlagAgentRFlag::getReport ( ) [protected, virtual]

Function to return histograms.

Reimplemented from casa::FlagAgentBase.

FlagReport casa::FlagAgentRFlag::getReportCore ( map< pair< Int, Int >, vector< Double > > &  data,
map< pair< Int, Int >, vector< Double > > &  dataSquared,
map< pair< Int, Int >, vector< Double > > &  counts,
map< pair< Int, Int >, Double > &  threshold,
FlagReport totalReport,
string  label,
Double  scale 
) [protected]

Function to return histograms.

Double casa::FlagAgentRFlag::mean ( vector< Double > &  data,
vector< Double > &  counts 
) [protected]

Convenience function to get simple averages.

Double casa::FlagAgentRFlag::median ( vector< Double > &  data) [protected]

Convenience function to compute median.

void casa::FlagAgentRFlag::noiseVsRef ( vector< Double > &  data,
Double  ref 
) [protected]
void casa::FlagAgentRFlag::passFinal ( const vi::VisBuffer2 visBuffer) [protected, virtual]

Remove automatically computed thresholds for the following scans.

Reimplemented from casa::FlagAgentBase.

void casa::FlagAgentRFlag::passIntermediate ( const vi::VisBuffer2 visBuffer) [protected, virtual]

Extract automatically computed thresholds to use them in the next pass.

Reimplemented from casa::FlagAgentBase.

void casa::FlagAgentRFlag::robustMean ( uInt  timestep_i,
uInt  pol_k,
uInt  nChannels,
Double AverageReal,
Double AverageImag,
Double StdReal,
Double StdImag,
Double SumWeightReal,
Double SumWeightImag,
VisMapper visibilities,
FlagMapper flags 
) [protected]
void casa::FlagAgentRFlag::setAgentParameters ( Record  config) [protected, virtual]

Parse configuration parameters.

Reimplemented from casa::FlagAgentBase.

void casa::FlagAgentRFlag::simpleMedian ( uInt  timestep_i,
uInt  pol_k,
uInt  nChannels,
Double AverageReal,
Double AverageImag,
Double StdReal,
Double StdImag,
Double SumWeightReal,
Double SumWeightImag,
VisMapper visibilities,
FlagMapper flags 
) [protected]

Member Data Documentation

General parameters.

Definition at line 121 of file FlagAgentRFlag.h.

Definition at line 122 of file FlagAgentRFlag.h.

Definition at line 137 of file FlagAgentRFlag.h.

Store frequency to be used in Reports.

Definition at line 136 of file FlagAgentRFlag.h.

Definition at line 145 of file FlagAgentRFlag.h.

Definition at line 143 of file FlagAgentRFlag.h.

Definition at line 144 of file FlagAgentRFlag.h.

Definition at line 141 of file FlagAgentRFlag.h.

Definition at line 153 of file FlagAgentRFlag.h.

Definition at line 151 of file FlagAgentRFlag.h.

Definition at line 152 of file FlagAgentRFlag.h.

Definition at line 149 of file FlagAgentRFlag.h.

Spectral Robust fit.

Definition at line 128 of file FlagAgentRFlag.h.

Time-direction analysis.

Definition at line 140 of file FlagAgentRFlag.h.

Definition at line 124 of file FlagAgentRFlag.h.

Definition at line 123 of file FlagAgentRFlag.h.

Definition at line 132 of file FlagAgentRFlag.h.

Spectral analysis.

Definition at line 148 of file FlagAgentRFlag.h.

Definition at line 125 of file FlagAgentRFlag.h.

void(casa::FlagAgentRFlag::* casa::FlagAgentRFlag::spectralAnalysis_p)(uInt, uInt, uInt, Double &, Double &, Double &, Double &, Double &, Double &, VisMapper &, FlagMapper &) [private]

Definition at line 133 of file FlagAgentRFlag.h.

Definition at line 131 of file FlagAgentRFlag.h.

Definition at line 130 of file FlagAgentRFlag.h.

Definition at line 129 of file FlagAgentRFlag.h.

Definition at line 142 of file FlagAgentRFlag.h.

Definition at line 150 of file FlagAgentRFlag.h.


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