DisperseWeight.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2008 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/General/Pulsar/DisperseWeight.h
10 
11 #ifndef __Pulsar_DisperseWeight_h
12 #define __Pulsar_DisperseWeight_h
13 
14 #include "Pulsar/Algorithm.h"
15 
16 namespace Pulsar {
17 
18  class Integration;
19 
20  class PhaseWeight;
21  class PhaseWeightShift;
22  class Dispersion;
23 
25  class DisperseWeight : public Algorithm
26  {
27 
28  public:
29 
31  DisperseWeight (const Integration*);
32 
34  ~DisperseWeight ();
35 
37  DisperseWeight* clone () const;
38 
40  void set_weight (const PhaseWeight*);
41 
43  void get_weight (unsigned ichan, PhaseWeight*);
44 
45  protected:
46 
49 
52 
55 
56  };
57 
58 }
59 
60 #endif
Reference::To< PhaseWeightShift > shift
Used to shift PhaseWeight masks by dispersion delay.
Definition: DisperseWeight.h:53
Stores a weight for each Profile phase bin.
Definition: PhaseWeight.h:29
Corrects dispersive delays.
Definition: Dispersion.h:33
Shifts PhaseWeight elements.
Definition: PhaseWeightShift.h:25
Reference::To< const Integration > integration
The Integration instance for whom this class is working.
Definition: DisperseWeight.h:59
Array of Profiles integrated over the same time interval.
Definition: Integration.h:37
void get_weight(unsigned ichan, PhaseWeight *)
Get the shifted PhaseWeight mask for the specified channel.
Definition: DisperseWeight.C:48
void set_weight(const PhaseWeight *)
Set the PhaseWeight mask to be shifted.
Definition: DisperseWeight.C:41
DisperseWeight(const Integration *)
Default constructor.
Definition: DisperseWeight.C:16
DisperseWeight * clone() const
Return a copy constructed instance of self.
Definition: DisperseWeight.C:35
double get_shift() const
Get the phase shift.
Definition: Dispersion.C:121
Shift phase weight mask by dispersion delay.
Definition: DisperseWeight.h:30
Defines the PSRCHIVE library.
Definition: CalSource.h:17
~DisperseWeight()
Destructor.
Definition: DisperseWeight.C:31
Reference::To< Dispersion > dispersion
Used to compute dispersion delay for PhaseWeightShift.
Definition: DisperseWeight.h:56

Generated using doxygen 1.8.17