PhaseWidth.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2004 - 2016 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/General/Pulsar/PhaseWidth.h
10
11#ifndef __Pulsar_PhaseWidth_h
12#define __Pulsar_PhaseWidth_h
13
14#include "Pulsar/WidthEstimator.h"
15#include "Pulsar/HasBaselineEstimator.h"
16#include "Pulsar/PhaseWeight.h"
17
18namespace Pulsar {
19
21
23 {
24 // stores the estimated uncertainty in pulse width estimate
25 Phase::Value error;
26
27 // height at which to estimate width
28 float fraction_of_maximum;
29
30 // threshold above noise below which algorithm gives up
31 float threshold_above_noise;
32
34 mutable PhaseWeight baseline;
35
36 public:
37
39 PhaseWidth ();
40
42 ~PhaseWidth ();
43
45 double get_width_turns (const Profile* profile);
46
47 Phase::Value get_error () const { return error; }
48
49 float get_fraction_of_maximum () const { return fraction_of_maximum; }
50 void set_fraction_of_maximum (float);
51
54
56 class Interface;
57
59 PhaseWidth* clone () const;
60
61 };
62
63}
64
65#endif
66
HasBaselineEstimator()
Default constructor.
Definition HasBaselineEstimator.C:15
Stores a weight for each Profile phase bin.
Definition PhaseWeight.h:24
~PhaseWidth()
Destructor.
Definition PhaseWidth.C:19
PhaseWidth()
Default constructor.
Definition PhaseWidth.C:24
TextInterface::Parser * get_interface()
Return a text interface that can be used to configure this instance.
Definition PhaseWidth.C:161
double get_width_turns(const Profile *profile)
Return the width of the pulse profile in turns.
Definition PhaseWidth.C:61
PhaseWidth * clone() const
Return a copy constructed instance of self.
Definition PhaseWidth.C:167
Any quantity recorded as a function of pulse phase.
Definition Profile.h:40
Algorithms that estimate the width of the pulse profile.
Definition WidthEstimator.h:27
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0