FreqVsSNRPlot.h
1 
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/Plotting/Pulsar/FreqVsSNRPlot.h
10 
11 #ifndef Freq_Vs_SNR_Plot_h_
12 #define Freq_Vs_SNR_Plot_h_
13 
14 #include "Pulsar/FrequencyPlot.h"
15 
16 namespace Pulsar
17 {
18  class FreqVsSNRPlot : public FrequencyPlot
19  {
20  public:
21  FreqVsSNRPlot();
22 
23  void prepare( const Pulsar::Archive * );
24  void draw( const Pulsar::Archive * );
25 
26  TextInterface::Parser *get_interface();
27 
28  void set_pol( unsigned new_pol ) { pol = new_pol; }
29  void set_subint( unsigned new_subint ) { subint = new_subint; }
30 
31  unsigned get_pol() const { return pol; }
32  unsigned get_subint() const { return subint; }
33 
34  class Interface : public TextInterface::To<FreqVsSNRPlot>
35  {
36  public:
37  Interface( FreqVsSNRPlot *s_instance );
38  };
39 
40  private:
41 
42  unsigned subint;
43  unsigned pol;
44 
45  std::vector <float> snrs;
46 
47  };
48 }
49 
50 #endif
51 
float snr() const
Returns the signal to noise ratio of the profile.
Definition: Profile_snr.C:15
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
The primary interface to pulsar observational data.
Definition: Archive.h:45
virtual unsigned get_nchan() const =0
Get the number of frequency channels used.
Profile * get_Profile(unsigned subint, unsigned pol, unsigned chan)
Return pointer to the specified profile.
Definition: Archive.C:270
Defines the PSRCHIVE library.
Definition: CalSource.h:17

Generated using doxygen 1.8.17