FluxCentroid.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2009 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/Timing/Pulsar/FluxCentroid.h
10 
11 #ifndef __Pulsar_FluxCentroid_h
12 #define __Pulsar_FluxCentroid_h
13 
14 #include "Pulsar/ProfileShiftEstimator.h"
15 #include "Pulsar/Config.h"
16 
17 namespace Pulsar {
18 
20  class FluxCentroid : public ProfileShiftEstimator
21  {
22 
23  public:
24 
26  FluxCentroid ();
27 
29  Estimate<double> get_shift () const;
30 
32  void set_duty_cycle (float dc) { duty_cycle = dc; }
33  float get_duty_cycle () const { return duty_cycle; }
34 
37  { return new EmptyInterface<FluxCentroid> ("COF"); }
38 
40  FluxCentroid* clone () const { return new FluxCentroid(*this); }
41 
42  protected:
43 
45  float duty_cycle;
46  };
47 
48 }
49 
50 
51 #endif // !defined __Pulsar_FluxCentroid_h
FluxCentroid()
Default constructor.
Definition: FluxCentroid.C:13
float duty_cycle
Duty cycle of pulse, over which flux will be integrated.
Definition: FluxCentroid.h:55
FluxCentroid * clone() const
Return a copy constructed instance of self.
Definition: FluxCentroid.h:50
void set_duty_cycle(float dc)
Set the duty cycle over which flux will be integrated.
Definition: FluxCentroid.h:42
Estimate< double > get_shift() const
Return the shift estimate.
Definition: FluxCentroid.C:18
Defines the PSRCHIVE library.
Definition: CalSource.h:17
TextInterface::Parser * get_interface()
Return a text interface that can be used to configure this instance.
Definition: FluxCentroid.h:46

Generated using doxygen 1.8.17