Contemporaneity.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2009 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/General/Pulsar/Contemporaneity.h
10 
11 #ifndef _Pulsar_Contemporaneity_H
12 #define _Pulsar_Contemporaneity_H
13 
14 #include "Pulsar/Algorithm.h"
15 #include "Pulsar/Predictor.h"
16 
17 namespace Pulsar {
18 
19  class Archive;
20  class Integration;
21 
23  class Contemporaneity : public Algorithm
24  {
25 
26  public:
27 
29  virtual void set_archives (const Archive*, const Archive*) = 0;
30 
32  virtual double evaluate (const Integration*, const Integration*) = 0;
33 
35  class AtPulsar;
36 
38  class AtEarth;
39  };
40 
51  class Contemporaneity::AtPulsar : public Contemporaneity
52  {
53  public:
54 
56  void set_archives (const Archive*, const Archive*);
57 
59  double evaluate (const Integration*, const Integration*);
60 
61  protected:
62 
63  Reference::To<const Predictor> predA, predB;
64  };
65 
66  class Contemporaneity::AtEarth : public Contemporaneity
67  {
68  public:
69 
71  void set_archives (const Archive*, const Archive*);
72 
74  double evaluate (const Integration*, const Integration*);
75  };
76 }
77 
78 #endif
void phase(Profile *input)
Compute the phase of the input complex-valued Profile.
Definition: Fourier.C:135
virtual MJD get_epoch() const =0
Get the epoch of the rising edge of bin zero.
The primary interface to pulsar observational data.
Definition: Archive.h:45
virtual double evaluate(const Integration *, const Integration *)=0
Return a fraction between 0 (no overlap) and 1 (complete overlap)
virtual void set_archives(const Archive *, const Archive *)=0
Retrieve any additional information that may be required.
Evaluates the contemporaneity of Integrations from two Archives.
Definition: Contemporaneity.h:28
Array of Profiles integrated over the same time interval.
Definition: Integration.h:37
void set_archives(const Archive *, const Archive *)
Retrieve any additional information that may be required.
Definition: Contemporaneity.C:59
const Predictor * get_model() const
Return a pointer to the current phase predictor.
Definition: Archive.C:290
Defines the PSRCHIVE library.
Definition: CalSource.h:17
double evaluate(const Integration *, const Integration *)
Return a fraction between 0 (no overlap) and 1 (complete overlap)
Definition: Contemporaneity.C:71

Generated using doxygen 1.8.17