PhaseWeightShift.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2007 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/General/Pulsar/PhaseWeightShift.h
10 
11 #ifndef __Pulsar_PhaseWeightShift_h
12 #define __Pulsar_PhaseWeightShift_h
13 
14 #include "Pulsar/PhaseWeightModifier.h"
15 #include "Functor.h"
16 
17 namespace Pulsar {
18 
20  class PhaseWeightShift : public PhaseWeightModifier {
21 
22  public:
23 
26 
28  PhaseWeightShift* clone () const;
29 
31  Functor< double() > get_shift;
32 
33  protected:
34 
36  void calculate (PhaseWeight*);
37 
38  };
39 
40 }
41 
42 
43 #endif // !defined __Pulsar_BaselineWeight_h
void phase(Profile *input)
Compute the phase of the input complex-valued Profile.
Definition: Fourier.C:135
unsigned get_nbin() const
Get the number of weights in the array.
Definition: PhaseWeight.h:70
void calculate(PhaseWeight *)
Derived classes implement the PhaseWeight calculation.
Definition: PhaseWeightShift.C:36
void get_weights(std::vector< float > &weights) const
Get the weights.
Definition: PhaseWeight.C:129
Stores a weight for each Profile phase bin.
Definition: PhaseWeight.h:29
PhaseWeightShift * clone() const
Return a new copy of self.
Definition: PhaseWeightShift.C:30
Shifts PhaseWeight elements.
Definition: PhaseWeightShift.h:25
PhaseWeightShift()
Default constructor.
Definition: PhaseWeightShift.C:24
Functor< double() > get_shift
Returns the shift.
Definition: PhaseWeightShift.h:41
Defines the PSRCHIVE library.
Definition: CalSource.h:17

Generated using doxygen 1.8.17