NormalizeStokes.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/NormalizeStokes.h
10 
11 #ifndef __MEAL_NormalizeStokes_h
12 #define __MEAL_NormalizeStokes_h
13 
14 #include "MEAL/Invariant.h"
15 #include "MEAL/ScalarParameter.h"
16 
17 namespace MEAL {
18 
19  class Scalar;
20 
22 
24  class NormalizeStokes : public Reference::Able {
25 
26  public:
27 
30 
33 
36 
38  void set_other (const Estimate<double>& other);
39 
42 
44  void normalize (Stokes< Estimate<float> >& stokes);
45 
47  void normalize (Stokes< Estimate<double> >& stokes);
48 
50  void normalize (Stokes< Estimate<double> >& stokes, Estimate<double> det);
51 
52  protected:
53 
56 
59 
61  Stokes<ScalarMath> output;
62 
63  private:
64 
66  void init ();
67 
68  };
69 
70 }
71 
72 #endif
73 
NormalizeStokes & operator=(const NormalizeStokes &)
Assignment operator.
Definition: NormalizeStokes.C:41
Reference::To< Invariant > invariant
Calculates the invariant interval and its bias.
Definition: NormalizeStokes.h:60
void normalize(Stokes< Estimate< float > > &stokes)
Normalize the Stokes parameters by their invariant interval.
Definition: NormalizeStokes.C:53
const ScalarMath sqrt(const ScalarMath &x)
Return a ScalarMath instance representing x^.5.
Definition: ScalarMath.C:151
Type * get() const
void set_other(const Estimate< double > &other)
Set the other term in the denominator.
Definition: NormalizeStokes.C:47
Namespace in which all modeling and calibration related code is declared.
Definition: ExampleComplex2.h:16
NormalizeStokes()
Default constructor.
Definition: NormalizeStokes.C:25
~NormalizeStokes()
Destructor.
Definition: NormalizeStokes.C:35
Reference::To< ScalarParameter > other
The other term in the denominator.
Definition: NormalizeStokes.h:63
Stokes< ScalarMath > output
The output Stokes parameters.
Definition: NormalizeStokes.h:66
Normalize Stokes parameters by the invariant interval.
Definition: NormalizeStokes.h:29

Generated using doxygen 1.8.17