PowerEstimator.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2005 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/Base/Extensions/Pulsar/PowerEstimator.h
10 
11 #ifndef __Pulsar_PowerEstimator_h
12 #define __Pulsar_PowerEstimator_h
13 
14 #include "Pulsar/ArchiveExtension.h"
15 #include <vector>
16 
17 namespace Pulsar {
18 
20  class PowerEstimator : public Archive::Extension {
21 
22  public:
23 
25  PowerEstimator (const char* name) : Archive::Extension (name) { }
26 
28  virtual void get_power (unsigned isub, unsigned ipol,
29  std::vector<float>& on,
30  std::vector<float>& off) const = 0;
31 
32  };
33 
34 }
35 
36 #endif
Extension(const char *name)
Construct with a name.
Definition: Archive.C:137
The primary interface to pulsar observational data.
Definition: Archive.h:45
PowerEstimator(const char *name)
Default constructor.
Definition: PowerEstimator.h:35
virtual void get_power(unsigned isub, unsigned ipol, std::vector< float > &on, std::vector< float > &off) const =0
Return the estimated power spectrum.
Defines the PSRCHIVE library.
Definition: CalSource.h:17

Generated using doxygen 1.8.17