Flux.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2010 by Paul Demorest
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9#ifndef __Pulsar_Flux_h
10#define __Pulsar_Flux_h
11
12#include "Pulsar/Algorithm.h"
13#include "Estimate.h"
14
15namespace Pulsar
16{
17 class Profile;
18
20
25 class Flux : public Algorithm
26 {
27 public:
28
30 Flux() {};
31
33 ~Flux() {};
34
37
39 //virtual Estimate<double> get_flux(const Profile *p) { return Estimate<double>(0,0); }
40 virtual Estimate<double> get_flux(const Profile *p)=0;
41
43 virtual std::string get_method() const { return ""; }
44
45 protected:
46
47 };
48
49}
50
51
52#endif
53
54
55
Data manipulation implementations.
Definition Algorithm.h:19
virtual Estimate< double > get_flux(const Profile *p)=0
Return flux w/ uncertainty.
virtual std::string get_method() const
Return name of flux algorithm.
Definition Flux.h:43
~Flux()
Destructor.
Definition Flux.h:33
Estimate< double > operator()(const Profile *p)
Return flux.
Definition Flux.h:36
Flux()
Default constructor.
Definition Flux.h:30
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