PolnSpectrumStats.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/PolnSpectrumStats.h
10
11#ifndef __Pulsar_PolnSpectrumStats_h
12#define __Pulsar_PolnSpectrumStats_h
13
14#include "Pulsar/FluctSpectStats.h"
15#include "Pulsar/PolnProfileStats.h"
16#include "Pulsar/PolnProfile.h"
17
18namespace Pulsar {
19
21 class PolnSpectrumStats : public FluctSpectStats<PolnProfile,PolnProfileStats>
22 {
23 public:
24
26 Stokes< std::complex< Estimate<double> > > get_stokes (unsigned) const;
27
30
32 std::complex< Estimate<double> > get_baseline_variance (unsigned) const;
33
34 protected:
35
37 void preprocess (PolnProfile*);
38
40 const Profile* reference (const PolnProfile* profile) { return profile->get_Profile(0); }
41
42 };
43
44}
45
46#endif
Reference::To< const PolnProfile > profile
Definition FluctSpectStats.h:60
FluctSpectStats()
Definition FluctSpectStats.h:106
Polarimetric pulse profile transformations and derivations.
Definition PolnProfile.h:29
Computes statistics of full-polarization fluctuation spectra.
Definition PolnSpectrumStats.h:22
std::complex< Estimate< double > > get_baseline_variance(unsigned) const
Returns the variance of the baseline for the specified polarization.
Definition PolnSpectrumStats.C:36
void preprocess(PolnProfile *)
Ensure that the PolnProfile is in the Stokes state.
Definition PolnSpectrumStats.C:43
Stokes< std::complex< Estimate< double > > > get_stokes(unsigned) const
Get the Stokes parameters for the specified harmonic.
Definition PolnSpectrumStats.C:14
const Profile * reference(const PolnProfile *profile)
Return the total intensity profile.
Definition PolnSpectrumStats.h:40
Estimate< double > get_total_squared_invariant() const
Returns the total squared invariant of the on-pulse phase bins.
Definition PolnSpectrumStats.C:29
Any quantity recorded as a function of pulse phase.
Definition Profile.h:40
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0