Coherency.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/MEAL/MEAL/Coherency.h
10 
11 #ifndef __MEAL_Coherency_H
12 #define __MEAL_Coherency_H
13 
14 #include "MEAL/Complex2.h"
15 #include "Estimate.h"
16 #include "Stokes.h"
17 
18 namespace MEAL {
19 
21 
23  class Coherency : public Complex2 {
24 
25  public:
26 
29 
31  virtual void set_stokes (const Stokes<double>& stokes);
32 
34  virtual void set_stokes (const Stokes< Estimate<double> >& stokes);
35 
37  virtual Stokes< Estimate<double> > get_stokes () const;
38 
40  void set_param_name_prefix (const std::string& prefix);
41  const std::string& get_param_name_prefix () const
42  { return param_name_prefix; }
43 
44  // ///////////////////////////////////////////////////////////////////
45  //
46  // Function implementation
47  //
48  // ///////////////////////////////////////////////////////////////////
49 
51  std::string get_name () const;
52 
53  protected:
54 
56  void calculate (Jones<double>& result, std::vector<Jones<double> >*);
57 
59  std::string param_name_prefix;
60  };
61 
62 }
63 
64 #endif
Abstract base class implements parameter storage and access.
Definition: Parameters.h:28
void set_param_name_prefix(const std::string &prefix)
Set the prefix to each parameter name.
Definition: Coherency.C:93
virtual Stokes< Estimate< double > > get_stokes() const
Get the Stokes parameters and their estimated errors.
Definition: Coherency.C:84
void calculate(Jones< double > &result, std::vector< Jones< double > > *)
Calculate the Jones matrix and its gradient.
Definition: Coherency.C:31
std::string param_name_prefix
Prefix added to all parameter names.
Definition: Coherency.h:69
Namespace in which all modeling and calibration related code is declared.
Definition: ExampleComplex2.h:16
std::string get_name() const
Return the name of the class.
Definition: Coherency.C:25
virtual void set_stokes(const Stokes< double > &stokes)
Set the Stokes parameters of the model.
Definition: Coherency.C:68
void set_name(unsigned index, const std::string &name)
Return the name of the specified parameter.
Definition: Parameters.h:69
Coherency()
Default constructor.
Definition: Coherency.C:14

Generated using doxygen 1.8.17