RiseFall.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2005 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/General/Pulsar/RiseFall.h
10
11#ifndef __Pulsar_RiseFall_h
12#define __Pulsar_RiseFall_h
13
14#include "Pulsar/OnPulseEstimator.h"
15
16namespace Pulsar {
17
19 class RiseFall : public OnPulseEstimator {
20
21 public:
22
24 virtual std::pair<int, int> get_rise_fall (const Profile*);
25
27 virtual void get_indeces (int& rise, int& fall) const = 0;
28
29 protected:
30
32 void calculate (PhaseWeight* weight);
33
34 };
35
36}
37
38
39#endif // !defined __Pulsar_RiseFall_h
ProfileWeight algorithms that compute on-pulse phase bins.
Definition OnPulseEstimator.h:20
Stores a weight for each Profile phase bin.
Definition PhaseWeight.h:24
Any quantity recorded as a function of pulse phase.
Definition Profile.h:40
Estimates the on-pulse region between a rise and a fall.
Definition RiseFall.h:19
virtual void get_indeces(int &rise, int &fall) const =0
Return the pulse phase bins in which the pulse rises and falls.
void calculate(PhaseWeight *weight)
Set the weights between rise and fall.
Definition RiseFall.C:18
virtual std::pair< int, int > get_rise_fall(const Profile *)
Return the rise and fall as a pair.
Definition RiseFall.C:35
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0