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 
18 namespace 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
const Profile * reference(const PolnProfile *profile)
Return the total intensity profile.
Definition: PolnSpectrumStats.h:50
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
void preprocess(PolnProfile *)
Ensure that the PolnProfile is in the Stokes state.
Definition: PolnSpectrumStats.C:43
Reference::To< const PolnProfile > profile
The Profile from which statistics will be derived.
Definition: FluctSpectStats.h:70
std::complex< Estimate< double > > get_baseline_variance(unsigned) const
Returns the variance of the baseline for the specified polarization.
Definition: PolnSpectrumStats.C:36
Stokes< std::complex< Estimate< double > > > get_stokes(unsigned) const
Get the Stokes parameters for the specified harmonic.
Definition: PolnSpectrumStats.C:14
Polarimetric pulse profile transformations and derivations.
Definition: PolnProfile.h:34
Defines the PSRCHIVE library.
Definition: CalSource.h:17
void convert_state(Signal::State state)
Convert to the specified state.
Definition: PolnProfile.C:455
Estimate< double > get_total_determinant() const
Returns the total determinant of the on-pulse phase bins.
Definition: PolnSpectrumStats.C:29

Generated using doxygen 1.8.17