MeanFeed.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/MeanFeed.h
10 
11 #ifndef __Calibration_MeanFeed_H
12 #define __Calibration_MeanFeed_H
13 
14 #include "MEAL/Mean.h"
15 #include "MEAL/Complex2.h"
16 
17 namespace Calibration {
18 
19  class Feed;
20 
22  class MeanFeed : 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 Feed* model);
37 
39  void update (Feed* model) const;
40 
42  double chisq (const Feed* model) const;
43 
44  protected:
45 
48 
51 
52  };
53 
54 }
55 
56 #endif
void integrate(const MEAL::Complex2 *model)
Add the Model parameters to the running mean.
Definition: MeanFeed.C:29
void update(MEAL::Complex2 *model) const
Update the Model parameters with the current mean.
Definition: MeanFeed.C:11
void set_orientation(unsigned ireceptor, const Estimate< double > &theta)
Set the orientation, , of the specified receptor (radians)
Definition: Feed.C:165
MeanRadian< double > mean_ellipticity[2]
Best estimate of receptor ellipticities.
Definition: MeanFeed.h:55
Estimate< double > get_ellipticity(unsigned ireceptor) const
Get the ellipticity, , of the specified receptor in radians.
Definition: Feed.C:159
Estimate< double > get_orientation(unsigned ireceptor) const
Get the orientation, , of the specified receptor (radians)
Definition: Feed.C:175
Phenomenological description of the receiver feed.
Definition: Feed.h:32
void set_ellipticity(unsigned ireceptor, const Estimate< double > &chi)
Set the ellipticity, , of the specified receptor in radians.
Definition: Feed.C:149
double chisq(const MEAL::Complex2 *model) const
Return the difference between the mean and the model.
Definition: MeanFeed.C:47
MeanRadian< double > mean_orientation[2]
Best estimate of receptor orientations.
Definition: MeanFeed.h:52

Generated using doxygen 1.8.17