Pulsar::FluxCalibrator::ConstantGain Class Reference

Used when gain remains constant between FluxCal-On and Off observations. More...

#include <FluxCalibratorPolicy.h>

Inheritance diagram for Pulsar::FluxCalibrator::ConstantGain:
Pulsar::FluxCalibrator::Policy Reference::Able Reference::HeapTracked

Public Member Functions

 ConstantGain ()
 Default constructor.
 
ConstantGainclone () const
 Return a new default constructed copy of self.
 
void set_nreceptor (unsigned)
 Set the number of receptors.
 
void integrate (Signal::Source source, unsigned ireceptor, const Estimate< double > &cal_hi, const Estimate< double > &cal_lo)
 Integrate an observation of the reference source.
 
Estimate< double > get_scale (unsigned ireceptor) const
 Get the scale for the specified receptor.
 
void get_scale (std::vector< Estimate< double > > &)
 Get the scale for each receptor.
 
void set_scale (unsigned ireceptor, const Estimate< double > &)
 Set the scale for the specified receptor.
 
void set_scale (const std::vector< Estimate< double > > &)
 Set the scale for each receptor.
 
Estimate< double > get_gain (unsigned ireceptor) const
 Get the gain for the specified receptor.
 
Estimate< double > get_gain_ratio (unsigned ireceptor) const
 Get the gain ratio for the specified receptor.
 
void get_gain_ratio (std::vector< Estimate< double > > &)
 Get the gain ratio for each receptor.
 
void set_gain_ratio (unsigned ireceptor, const Estimate< double > &)
 Set the gain ratio for the specified receptor.
 
void set_gain_ratio (const std::vector< Estimate< double > > &)
 Set the gain ratio for each receptor.
 
Estimate< double > get_scale () const
 
Estimate< double > get_gain () const
 
- Public Member Functions inherited from Pulsar::FluxCalibrator::Policy
 Policy ()
 Default constructor.
 
void get (std::vector< Estimate< double > > &S_sys, std::vector< Estimate< double > > &S_cal) const
 Get the flux densities for each receptor.
 
void set (const std::vector< Estimate< double > > &S_sys, const std::vector< Estimate< double > > &S_cal)
 Set the flux densities for each receptor.
 
unsigned get_nreceptor () const
 Get the number of receptors.
 
void set_S_std (double S_std)
 Set the flux density of the standard candle. More...
 
double get_S_std () const
 Get the flux density of the standard candle. More...
 
void set_valid (bool f=true)
 Set the data validity flag.
 
bool get_valid () const
 Get the data validity flag.
 
bool get_solution_available () const
 Return true when a solution is available.
 
Estimate< double > get_S_sys () const
 Return the total system equivalent flux density.
 
Estimate< double > get_S_cal () const
 Return the total calibrator flux density.
 
Estimate< double > get_S_sys (unsigned receptor) const
 Return the system equivalent flux density in the specified receptor.
 
Estimate< double > get_S_cal (unsigned receptor) const
 Return the calibrator flux density in the specified receptor.
 
- Public Member Functions inherited from Reference::Able
 Able (const Able &)
 
Ableoperator= (const Able &)
 
unsigned get_reference_count () const
 
- Public Member Functions inherited from Reference::HeapTracked
 HeapTracked (const HeapTracked &)
 
HeapTrackedoperator= (const HeapTracked &)
 
bool __is_on_heap () const
 

Protected Member Functions

void compute (unsigned ireceptor, Estimate< double > &S_cal, Estimate< double > &S_sys)
 Compute the fluxes of the reference source and system.
 
void invalidate (unsigned ireceptor)
 
- Protected Member Functions inherited from Pulsar::FluxCalibrator::Policy
void calculate () const
 Calulate S_cal and S_sys for both receptors.
 
- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 
void __dereference (bool auto_delete=true) const
 

Protected Attributes

std::vector< MeanEstimate< double > > mean_hi_on
 Mean of on-source observations with noise diode emitting.
 
std::vector< MeanEstimate< double > > mean_lo_on
 Mean of on-source observations with noise diode off.
 
std::vector< MeanEstimate< double > > mean_hi_off
 Mean of off-source observations with noise diode emitting.
 
std::vector< MeanEstimate< double > > mean_lo_off
 Mean of off-source observations with noise diode off.
 
std::vector< Estimate< double > > scale
 
std::vector< Estimate< double > > gain_ratio
 
- Protected Attributes inherited from Pulsar::FluxCalibrator::Policy
bool valid
 Flag set when data are valid.
 
double S_std
 Flux density of the standard candle.
 
std::vector< Estimate< double > > S_cal
 Calibrator flux density in each receptor.
 
std::vector< Estimate< double > > S_sys
 System equivalent flux density in each receptor.
 
bool calculated
 Flag set when S_cal and S_sys have been computed.
 

Additional Inherited Members

- Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
 
- Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
 
static void operator delete (void *location, void *ptr)
 
static void operator delete (void *location)
 
static size_t get_heap_queue_size ()
 

Detailed Description

Used when gain remains constant between FluxCal-On and Off observations.


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

Generated using doxygen 1.8.17