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
17namespace Pulsar {
18
21 {
22
23 public:
24
26 FluxCentroid ();
27
30
32 void set_duty_cycle (float dc) { duty_cycle = dc; }
33 float get_duty_cycle () const { return duty_cycle; }
34
38
40 FluxCentroid* clone () const { return new FluxCentroid(*this); }
41
42 protected:
43
46 };
47
48}
49
50
51#endif // !defined __Pulsar_FluxCentroid_h
Convenience interface used to add ShiftEstimator children to factory.
Definition ShiftEstimator.h:60
float duty_cycle
Duty cycle of pulse, over which flux will be integrated.
Definition FluxCentroid.h:45
Estimate< double > get_shift() const
Return the shift estimate.
Definition FluxCentroid.C:18
TextInterface::Parser * get_interface()
Return a text interface that can be used to configure this instance.
Definition FluxCentroid.h:36
void set_duty_cycle(float dc)
Set the duty cycle over which flux will be integrated.
Definition FluxCentroid.h:32
FluxCentroid()
Default constructor.
Definition FluxCentroid.C:13
FluxCentroid * clone() const
Return a copy constructed instance of self.
Definition FluxCentroid.h:40
Algorithms that estimate the phase shift from a single pulse profile.
Definition ProfileShiftEstimator.h:21
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0