MatrixTemplateMatching.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/Timing/Pulsar/MatrixTemplateMatching.h
10 
11 #ifndef __Pulsar_MatrixTemplateMatching_h
12 #define __Pulsar_MatrixTemplateMatching_h
13 
14 #include "Pulsar/ArrivalTime.h"
15 
16 namespace Pulsar {
17 
18  class PulsarCalibrator;
19 
21  class MatrixTemplateMatching : public ArrivalTime
22  {
23 
24  public:
25 
28 
30  void set_maximum_harmonic (unsigned max);
31 
33  void set_choose_maximum_harmonic (bool flag = true);
34 
36  void preprocess (Archive* archive);
37 
39  void set_observation (const Archive*);
40 
42  void set_standard (const Archive*);
43 
44  protected:
45 
48 
50  void get_toas (unsigned subint, std::vector<Tempo::toa>& toas);
51  };
52 
53 }
54 
55 
56 #endif // !defined __Pulsar_MatrixTemplateMatching_h
Jones< double > evaluate(std::vector< Jones< double > > *grad=0) const
void set_maximum_harmonic(unsigned max)
Set the maximum number of harmonics to include in fit.
Definition: MatrixTemplateMatching.C:29
void set_observation(const Archive *)
Set the observation from which the arrival times will be derived.
Definition: MatrixTemplateMatching.C:57
void set_choose_maximum_harmonic(bool flag=true)
Allow software to choose the maximum harmonic.
Definition: MatrixTemplateMatching.C:35
Estimates phase shift in Fourier domain using matrix template matching.
Definition: MatrixTemplateMatching.h:26
The primary interface to pulsar observational data.
Definition: Archive.h:45
Array of Profiles integrated over the same time interval.
Definition: Integration.h:37
Reference::To< PulsarCalibrator > engine
The PulsarCalibrator class takes care of many details.
Definition: MatrixTemplateMatching.h:52
void set_standard(const Archive *)
Set the standard/template to which observation will be matched.
Definition: MatrixTemplateMatching.C:46
void preprocess(Archive *archive)
Prepare the data for use.
Definition: MatrixTemplateMatching.C:40
void get_toas(unsigned subint, std::vector< Tempo::toa > &toas)
get the arrival times for the specified sub-integration
Definition: MatrixTemplateMatching.C:64
double get_reduced_chisq() const
Get the statistical goodness of fit.
Definition: PolnProfileFit.C:508
virtual unsigned get_nchan() const =0
Get the number of chans.
Defines the PSRCHIVE library.
Definition: CalSource.h:17
MEAL::Complex2 * get_transformation() const
Get the transformation between the standard and the observation.
Definition: PolnProfileFit.C:281
The matrix template matching algorithm.
Definition: PolnProfileFit.h:50
PolnProfile * new_PolnProfile(unsigned ichan)
Returns a pointer to a new PolnProfile instance.
Definition: Integration_new_PolnProfile.C:16

Generated using doxygen 1.8.17