HasBaselineEstimator.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2019 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/General/Pulsar/HasBaselineEstimator.h
10
11#ifndef __Pulsar_HasBaselineEstimator_h
12#define __Pulsar_HasBaselineEstimator_h
13
14#include "ProfileWeightFunction.h"
15
16namespace Pulsar
17{
18 class Profile;
20
23 {
24 public:
25
28
31
34
37
40
42 bool has_baseline_estimator () const;
43
44 template<typename Child>
45 static void import (typename Child::Interface*);
46
47 private:
48
50 Reference::To<ProfileWeightFunction> baseline_estimator;
51 };
52
53 template<typename Child>
54 void HasBaselineEstimator::import (typename Child::Interface* interface)
55 {
59 "off", "Off-pulse estimator" );
60 };
61
62}
63
64
65#endif
66
67
68
~HasBaselineEstimator()
Destructor.
Definition HasBaselineEstimator.C:26
bool has_baseline_estimator() const
Return true if baseline estimator is set.
Definition HasBaselineEstimator.C:43
virtual void set_baseline_estimator(ProfileWeightFunction *)
Set the algorithm used to find the off-pulse phase bins.
Definition HasBaselineEstimator.C:31
HasBaselineEstimator()
Default constructor.
Definition HasBaselineEstimator.C:15
ProfileWeightFunction * get_baseline_estimator() const
Get the algorithm used to find the off-pulse phase bins.
Definition HasBaselineEstimator.C:38
virtual TextInterface::Parser * get_interface()=0
Return a text interface that can be used to configure this instance.
PhaseWeight algorithms that receive an input Profile.
Definition ProfileWeightFunction.h:22
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