DynamicStatSpectrumPlot.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2021 by Paul Demorest
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __Pulsar_DynamicStatSpectrumPlot_h
10 #define __Pulsar_DynamicStatSpectrumPlot_h
11 
12 #include "Pulsar/DynamicSpectrumPlot.h"
13 #include "Pulsar/ArchiveStatistic.h"
14 
15 namespace Pulsar {
16 
18  class DynamicStatSpectrumPlot : public DynamicSpectrumPlot {
19 
20  public:
21 
24 
27 
30 
31  // Text interface to the PhaseVsFrequency class
32  class Interface : public TextInterface::To<DynamicStatSpectrumPlot> {
33  public:
34  Interface (DynamicStatSpectrumPlot* = 0);
35  };
36 
37  void get_plot_array(const Archive *data, float *array);
38 
40  virtual void preprocess (Archive*) {}
41 
43  void set_statistic (ArchiveStatistic*);
44 
46  ArchiveStatistic* get_statistic () const;
47 
48  protected:
49 
51 
52  };
53 
54 }
55 
56 #endif
Plots off-pulse mean or variance as a func of time and freq.
Definition: DynamicStatSpectrumPlot.h:23
void set_statistic(ArchiveStatistic *)
Set the statistic.
Definition: DynamicStatSpectrumPlot.C:70
~DynamicStatSpectrumPlot()
Default constructor.
Definition: DynamicStatSpectrumPlot.C:23
ArchiveStatistic * get_statistic() const
Get the statistic.
Definition: DynamicStatSpectrumPlot.C:77
The primary interface to pulsar observational data.
Definition: Archive.h:45
DynamicStatSpectrumPlot()
Default constructor.
Definition: DynamicStatSpectrumPlot.C:18
virtual void preprocess(Archive *)
Disable preprocessing.
Definition: DynamicStatSpectrumPlot.h:50
Commmon statistics that can be derived from an Archive.
Definition: ArchiveStatistic.h:29
Integration * get_Integration(unsigned subint)
Return pointer to the specified Integration.
Definition: IntegrationManager.C:41
Array of Profiles integrated over the same time interval.
Definition: Integration.h:37
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition: DynamicStatSpectrumPlot.C:27
void get_plot_array(const Archive *data, float *array)
Derived classes must fill in the nsubint by nchan data array.
Definition: DynamicStatSpectrumPlot.C:33
Defines the PSRCHIVE library.
Definition: CalSource.h:17
const ExtensionType * get() const
Template method searches for an Extension of the specified type.

Generated using doxygen 1.8.17