StandardSpectra.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2008 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/Polarimetry/Pulsar/StandardSpectra.h
10 
11 #ifndef __Calibration_StandardSpectra_H
12 #define __Calibration_StandardSpectra_H
13 
14 #include "Pulsar/PolnSpectrumStats.h"
15 #include "MEAL/NormalizeStokes.h"
16 
17 namespace Calibration {
18 
20 
25  class StandardSpectra : public Reference::Able
26  {
27  public:
28 
30 
31  StandardSpectra (const Pulsar::PolnProfile* select = 0);
32 
34  void select_profile (const Pulsar::PolnProfile*);
35 
37  void set_profile (const Pulsar::PolnProfile*);
38 
40  const Pulsar::PolnProfile* get_fourier () const;
41 
43  unsigned get_last_harmonic () const;
44 
46  void set_normalize (bool);
47 
49  Stokes< std::complex< Estimate<double> > > get_stokes (unsigned ibin);
50 
53 
54  protected:
55 
58 
59  Estimate<double> total_determinant;
60  unsigned last_harmonic;
61 
62  };
63 
64 }
65 
66 #endif
const Pulsar::PolnProfile * get_fourier() const
Get the fourier transform of the last set profile.
Definition: StandardSpectra.C:59
Stokes< std::complex< Estimate< double > > > get_stokes(unsigned ibin)
Get the Stokes parameters of the specified phase bin.
Definition: StandardSpectra.C:75
void select_profile(const Pulsar::PolnProfile *)
Select the baseline and last harmonic from profile.
Definition: StandardSpectra.C:25
void set_profile(const Pulsar::PolnProfile *)
Set the profile from which estimates will be derived.
Definition: StandardSpectra.C:33
unsigned get_last_harmonic() const
Return the index of the last harmonic.
Definition: StandardSpectra.C:54
Computes statistics of full-polarization fluctuation spectra.
Definition: PolnSpectrumStats.h:26
Polarimetric pulse profile transformations and derivations.
Definition: PolnProfile.h:34
Pulsar::PolnSpectrumStats * get_stats()
Get the statistical interface to the data.
Definition: StandardSpectra.C:49
StandardSpectra(const Pulsar::PolnProfile *select=0)
Default constructor.
Definition: StandardSpectra.C:15
void set_normalize(bool)
Normalize estimates by the average determinant.
Definition: StandardSpectra.C:65

Generated using doxygen 1.8.17