MeanPhase.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2018 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/Timing/Pulsar/MeanPhase.h
10 
11 #ifndef __Pulsar_MeanPhase_h
12 #define __Pulsar_MeanPhase_h
13 
14 #include "Pulsar/ProfileShiftEstimator.h"
15 #include "Pulsar/Config.h"
16 
17 namespace Pulsar {
18 
20  class MeanPhase : public ProfileShiftEstimator
21  {
22 
23  public:
24 
26  Estimate<double> get_shift () const;
27 
30  { return new EmptyInterface<MeanPhase> ("MPH"); }
31 
33  MeanPhase* clone () const { return new MeanPhase(*this); }
34 
35  };
36 
37 }
38 
39 
40 #endif // !defined __Pulsar_MeanPhase_h
MeanPhase * clone() const
Return a copy constructed instance of self.
Definition: MeanPhase.h:43
Estimate< double > get_shift() const
Return the shift estimate.
Definition: MeanPhase.C:13
TextInterface::Parser * get_interface()
Return a text interface that can be used to configure this instance.
Definition: MeanPhase.h:39
Defines the PSRCHIVE library.
Definition: CalSource.h:17

Generated using doxygen 1.8.17