TotalCovariance.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2006 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/Polarimetry/Pulsar/TotalCovariance.h
10 
11 #ifndef __Calibration_TotalCovariance_H
12 #define __Calibration_TotalCovariance_H
13 
14 #include "Pulsar/TemplateUncertainty.h"
15 #include "Matrix.h"
16 
17 namespace Calibration {
18 
20  class TotalCovariance : public TemplateUncertainty {
21 
22  public:
23 
26 
28  TotalCovariance* clone () const;
29 
31  void add (const Uncertainty*);
32 
34  void set_covariance (const Matrix<4,4,double>& opt);
35 
38 
40  double get_weighted_norm (const Jones<double>&) const;
41 
44 
45  protected:
46 
49 
50  bool observation_covariance_set;
51 
54 
57 
59  void build ();
60 
61  };
62 
63 }
64 
65 #endif
Matrix< 4, 4, double > optimizer
The optimizing transformation.
Definition: TotalCovariance.h:66
void set_transformation(const Jones< double > &)
void build()
Compute inv_covar attribute.
Definition: TotalCovariance.C:82
void set_optimizing_transformation(const Matrix< 4, 4, double > &opt)
Set the optimizing transformation applied to the template.
Definition: TotalCovariance.C:45
Matrix< 4, 4, double > get_covariance() const
void set_covariance(const Matrix< 4, 4, double > &opt)
Set the covariances of the observed Stokes parameters.
Definition: TotalCovariance.C:36
void add(const Uncertainty *)
Add the uncertainty of another instance.
Definition: TotalCovariance.C:28
TotalCovariance()
Default constructor.
Definition: TotalCovariance.C:16
TotalCovariance * clone() const
Clone operator.
Definition: TotalCovariance.C:22
void set_variance(const Stokes< double > &)
double get_weighted_norm(const Jones< double > &) const
Given a coherency matrix, return the weighted norm.
Definition: TotalCovariance.C:54
Matrix< 4, 4, double > inv_covar
The inverse of the total covariance matrix.
Definition: TotalCovariance.h:63
Combines the uncertainty of the template and the observation.
Definition: TotalCovariance.h:25
Matrix< 4, 4, double > observation_covariance
The covariances of the observed Stokes parameters.
Definition: TotalCovariance.h:58
Jones< double > get_weighted_conjugate(const Jones< double > &) const
Given a coherency matrix, return the weighted conjugate matrix.
Definition: TotalCovariance.C:66

Generated using doxygen 1.8.17