MeanSingleAxis.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/Polarimetry/Pulsar/MeanSingleAxis.h
10 
11 #ifndef __Calibration_MeanSingleAxis_H
12 #define __Calibration_MeanSingleAxis_H
13 
14 #include "MEAL/Mean.h"
15 #include "MEAL/Complex2.h"
16 
17 namespace Calibration {
18 
19  class SingleAxis;
20 
22  class MeanSingleAxis : public MEAL::Mean<MEAL::Complex2> {
23 
24  public:
25 
27  void integrate (const MEAL::Complex2* model);
28 
30  void update (MEAL::Complex2* model) const;
31 
33  double chisq (const MEAL::Complex2* model) const;
34 
36  void integrate (const SingleAxis* model);
37 
39  void update (SingleAxis* model) const;
40 
42  double chisq (const SingleAxis* single_axis) const;
43 
44  protected:
45 
48 
51 
54 
55  };
56 
57 }
58 
59 #endif
60 
Estimate< double > get_gain() const
Get the instrumental gain, , in calibrator flux units.
Definition: SingleAxis.C:84
MeanRadian< double > mean_diff_phase
Best estimate of differential phase.
Definition: MeanSingleAxis.h:58
void update(MEAL::Complex2 *model) const
Update the Model parameters with the current mean.
Definition: MeanSingleAxis.C:13
void integrate(const MEAL::Complex2 *model)
Add the Model parameters to the running mean.
Definition: MeanSingleAxis.C:46
void set_diff_gain(const Estimate< double > &gamma)
Set the differential gain, , in hyperbolic radians.
Definition: SingleAxis.C:117
void set_diff_phase(const Estimate< double > &phi)
Set the differential phase, , in radians.
Definition: SingleAxis.C:124
Estimate< double > get_diff_phase() const
Get the differential phase, , in radians.
Definition: SingleAxis.C:96
Estimate< double > get_diff_gain() const
Get the differential gain, , in hyperbolic radians.
Definition: SingleAxis.C:90
Instrumental gain, differential gain, and differential phase.
Definition: SingleAxis.h:38
static bool very_verbose
MeanEstimate< double > mean_diff_gain
Best estimate of differential gain.
Definition: MeanSingleAxis.h:55
T get_value() const
MeanEstimate< double > mean_gain
Best estimate of instrumental gain.
Definition: MeanSingleAxis.h:52
double chisq(const MEAL::Complex2 *model) const
Return the difference between the mean and the model.
Definition: MeanSingleAxis.C:70
void set_gain(const Estimate< double > &gain)
Set the instrumental gain, , in calibrator flux units.
Definition: SingleAxis.C:110

Generated using doxygen 1.8.17