Combines the uncertainty of the template and the observation. More...

#include <TotalCovariance.h>

Inheritance diagram for Calibration::TotalCovariance:
Calibration::TemplateUncertainty Calibration::ObservationUncertainty Calibration::CoherencyMeasurement::Uncertainty Reference::Able Reference::HeapTracked

Public Member Functions

 TotalCovariance ()
 Default constructor.
TotalCovarianceclone () const
 Clone operator.
void add (const Uncertainty *)
 Add the uncertainty of another instance.
void set_covariance (const Matrix< 4, 4, double > &opt)
 Set the covariances of the observed Stokes parameters.
void set_optimizing_transformation (const Matrix< 4, 4, double > &opt)
 Set the optimizing transformation applied to the template.
double get_weighted_norm (const Jones< double > &) const
 Given a coherency matrix, return the weighted norm.
Jones< double > get_weighted_conjugate (const Jones< double > &) const
 Given a coherency matrix, return the weighted conjugate matrix.
Public Member Functions inherited from Calibration::TemplateUncertainty
 TemplateUncertainty ()
 Default constructor.
void set_variance (const Stokes< double > &var)
 Set the uncertainty of the observation.
void set_template_variance (const Stokes< double > &var)
 Set the uncertainty of the template.
void set_variance (const Stokes< std::complex< double > > &var)
 Set the uncertainty of the observation.
void set_template_variance (const Stokes< std::complex< double > > &var)
 Set the uncertainty of the template.
void set_transformation (MEAL::Complex2 *transformation)
 Set the transformation from template to observation.
const MEAL::Complex2get_transformation () const
virtual Stokes< std::complex< double > > get_weighted_components (const Jones< double > &) const
 Given a coherency matrix, return the weighted Stokes parameters.
Public Member Functions inherited from Calibration::ObservationUncertainty
 ObservationUncertainty ()
 Default constructor.
 ObservationUncertainty (const Stokes< double > &variance)
 Construct with the uncertainty of the observation.
Stokes< std::complex< double > > get_variance () const
 Return the variance of each Stokes parameter.
void scale (double)
 Scale the variance by the square of a scalar.
Public Member Functions inherited from Calibration::CoherencyMeasurement::Uncertainty
virtual void add (const Uncertainty *)=0
 Add the uncertainty of another instance.
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 build ()
 Compute inv_covar attribute.
Protected Member Functions inherited from Calibration::TemplateUncertainty
void changed (MEAL::Function::Attribute a)
 Callback method attached to transformation::changed signal.
void check_build () const
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
void __dereference (bool auto_delete=true) const

Protected Attributes

Matrix< 4, 4, double > observation_covariance
 The covariances of the observed Stokes parameters.
bool observation_covariance_set
Matrix< 4, 4, double > inv_covar
 The inverse of the total covariance matrix.
Matrix< 4, 4, double > optimizer
 The optimizing transformation.
Protected Attributes inherited from Calibration::TemplateUncertainty
Stokes< std::complex< double > > observation_variance
 The variance of the observed Stokes parameters.
Stokes< std::complex< double > > template_variance
 The variance of the template Stokes parameters.
Reference::To< MEAL::Complex2transformation
 The transformation from template to observation.
bool built
 Flag set when inv_var attribute is up-to-date.
Protected Attributes inherited from Calibration::ObservationUncertainty
Stokes< std::complex< double > > inv_variance
 The inverse of the observation variance.

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

Combines the uncertainty of the template and the observation.

Member Function Documentation

◆ add()

void TotalCovariance::add ( const Uncertainty * other)
virtual

Add the uncertainty of another instance.

Reimplemented from Calibration::TemplateUncertainty.

◆ build()

◆ clone()

TotalCovariance * TotalCovariance::clone ( ) const
virtual

Clone operator.

Reimplemented from Calibration::TemplateUncertainty.

References TotalCovariance().

◆ get_weighted_conjugate()

Jones< double > TotalCovariance::get_weighted_conjugate ( const Jones< double > & matrix) const
virtual

Given a coherency matrix, return the weighted conjugate matrix.

Reimplemented from Calibration::TemplateUncertainty.

References build(), Calibration::TemplateUncertainty::built, inv_covar, and TotalCovariance().

◆ get_weighted_norm()

double TotalCovariance::get_weighted_norm ( const Jones< double > & matrix) const
virtual

Given a coherency matrix, return the weighted norm.

Given a coherency matrix, return the difference.

Reimplemented from Calibration::TemplateUncertainty.

References build(), Calibration::TemplateUncertainty::built, inv_covar, and TotalCovariance().

◆ set_covariance()

void TotalCovariance::set_covariance ( const Matrix< 4, 4, double > & opt)

Set the covariances of the observed Stokes parameters.

Set the uncertainty of the observation.

References Calibration::TemplateUncertainty::built, and observation_covariance.

◆ set_optimizing_transformation()

void TotalCovariance::set_optimizing_transformation ( const Matrix< 4, 4, double > & opt)

Set the optimizing transformation applied to the template.

Set the optimizing transformation.

References Calibration::TemplateUncertainty::built, and optimizer.


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

Generated using doxygen 1.14.0