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
17namespace Calibration {
18
20
24
26 {
27 public:
28
30
31 StandardSpectra (const Pulsar::PolnProfile* select = 0);
32
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
55 Estimate<double> get_total_squared_invariant() { return total_squared_invariant; }
56
57 protected:
58
61
62 Estimate<double> total_squared_invariant;
63 unsigned last_harmonic;
64
65 };
66
67}
68
69#endif
void set_profile(const Pulsar::PolnProfile *)
Set the profile from which estimates will be derived.
Definition StandardSpectra.C:33
void set_normalize(bool)
Normalize estimates by the average squared_invariant.
Definition StandardSpectra.C:64
Pulsar::PolnSpectrumStats * get_stats()
Get the statistical interface to the data.
Definition StandardSpectra.C:49
void select_profile(const Pulsar::PolnProfile *)
Select the baseline and last harmonic from profile.
Definition StandardSpectra.C:25
Stokes< std::complex< Estimate< double > > > get_stokes(unsigned ibin)
Get the Stokes parameters of the specified phase bin.
Definition StandardSpectra.C:74
unsigned get_last_harmonic() const
Return the index of the last harmonic.
Definition StandardSpectra.C:54
StandardSpectra(const Pulsar::PolnProfile *select=0)
Default constructor.
Definition StandardSpectra.C:15
const Pulsar::PolnProfile * get_fourier() const
Get the fourier transform of the last set profile.
Definition StandardSpectra.C:59
Estimate< double > get_total_squared_invariant()
Get the total squared invariant used to normalize the Stokes parameters.
Definition StandardSpectra.h:55
Polarimetric pulse profile transformations and derivations.
Definition PolnProfile.h:29
Computes statistics of full-polarization fluctuation spectra.
Definition PolnSpectrumStats.h:22

Generated using doxygen 1.14.0