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
17namespace 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
A weighted mean of SingleAxis parameter estimates.
Definition MeanSingleAxis.h:22
void update(MEAL::Complex2 *model) const
Update the Model parameters with the current mean.
Definition MeanSingleAxis.C:13
MeanEstimate< double > mean_diff_gain
Best estimate of differential gain.
Definition MeanSingleAxis.h:50
void integrate(const MEAL::Complex2 *model)
Add the Model parameters to the running mean.
Definition MeanSingleAxis.C:46
MeanEstimate< double > mean_gain
Best estimate of instrumental gain.
Definition MeanSingleAxis.h:47
double chisq(const MEAL::Complex2 *model) const
Return the difference between the mean and the model.
Definition MeanSingleAxis.C:70
MeanRadian< double > mean_diff_phase
Best estimate of differential phase.
Definition MeanSingleAxis.h:53
Instrumental gain, differential gain, and differential phase.
Definition SingleAxis.h:38

Generated using doxygen 1.14.0