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 
16 namespace 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
virtual void get_indeces(int &rise, int &fall) const =0
Return the pulse phase bins in which the pulse rises and falls.
Stores a weight for each Profile phase bin.
Definition: PhaseWeight.h:29
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
Reference::To< const Profile, false > profile
The Profile from which the PhaseWeight will be derived.
Definition: ProfileWeightFunction.h:61
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
void calculate(PhaseWeight *weight)
Set the weights between rise and fall.
Definition: RiseFall.C:18

Generated using doxygen 1.8.17