StepsInfo.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2007 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/Polarimetry/Pulsar/StepsInfo.h
10 
11 #ifndef __Pulsar_StepsInfo_H
12 #define __Pulsar_StepsInfo_H
13 
14 #include "Pulsar/VariationInfo.h"
15 #include "MEAL/Steps.h"
16 
17 namespace Pulsar {
18 
20  class StepsInfo : public VariationInfo {
21 
22  public:
23 
26 
28  std::string get_title () const;
29 
31  unsigned get_nclass () const;
32 
34  std::string get_name (unsigned iclass) const;
35 
37  unsigned get_nparam (unsigned iclass) const;
38 
40  Estimate<float> get_param (unsigned ichan, unsigned iclass,
41  unsigned iparam) const;
42 
44  const MEAL::Steps* get_Steps (unsigned ichan) const;
45 
47  Estimate<float> get_step (unsigned ichan, unsigned kstep) const;
48 
49  protected:
50 
51  // abscissa at which steps take place
52  std::vector<double> steps;
53 
54  // add new steps to the steps vector
55  void add_steps (const MEAL::Steps*);
56 
57  // mean value over all steps
58  std::vector< MeanEstimate<double> > mean;
59  std::vector< MeanRadian<double> > mean_radian;
60 
61  };
62 
63 }
64 
65 #endif
@ Rotation
Differential phase.
Definition: VariationInfo.h:46
Which which
Which function to plot.
Definition: VariationInfo.h:62
Reference::To< const SystemCalibrator > calibrator
The SystemCalibrator containing the step functions.
Definition: VariationInfo.h:59
Estimate< float > get_param(unsigned ichan, unsigned iclass, unsigned iparam) const
Return the estimate of the specified parameter.
Definition: StepsInfo.C:117
StepsInfo(const SystemCalibrator *calibrator, Which which)
Construct with code of which function to plot.
Definition: StepsInfo.C:15
Communicates time variation parameters to plotting routines.
Definition: VariationInfo.h:25
PolnCalibrator with estimated calibrator Stokes parameters.
Definition: SystemCalibrator.h:43
unsigned get_nclass() const
Return the number of parameter classes.
Definition: StepsInfo.C:91
std::string get_name(unsigned iclass) const
Return the name of the specified class.
Definition: VariationInfo.C:56
std::string get_name(unsigned iclass) const
Return the name of the specified class.
Definition: StepsInfo.C:98
static unsigned verbose
Verbosity level.
Definition: Calibrator.h:40
unsigned get_nparam(unsigned iclass) const
Return the number of parameters in the specified class.
Definition: StepsInfo.C:110
Which
Things that vary in a SystemCalibrator.
Definition: VariationInfo.h:35
std::string get_title() const
Return the title.
Definition: StepsInfo.C:85
Defines the PSRCHIVE library.
Definition: CalSource.h:17
const MEAL::Steps * get_Steps(unsigned ichan) const
Return the Steps function for the specified channel.
Definition: StepsInfo.C:43
Estimate< float > get_step(unsigned ichan, unsigned kstep) const
Get the kth step of the ith channel.
Definition: StepsInfo.C:139

Generated using doxygen 1.8.17