SincInterpShift.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/SincInterpShift.h
10 
11 #ifndef __Pulsar_SincInterpShift_h
12 #define __Pulsar_SincInterpShift_h
13 
14 #include "Pulsar/ProfileStandardShift.h"
15 
16 namespace Pulsar {
17 
19  class SincInterpShift : public ProfileStandardShift
20  {
21 
22  public:
23 
25  SincInterpShift ();
26 
28  Estimate<double> get_shift () const;
29 
32  { return new EmptyInterface<SincInterpShift> ("SIS"); }
33 
35  SincInterpShift* clone () const { return new SincInterpShift(*this); }
36 
37  void set_zap_period (unsigned p) { zap_period = p; }
38 
39  protected:
40 
42  unsigned zap_period;
43 
44  };
45 
46 }
47 
48 
49 #endif // !defined __Pulsar_SincInterpShift_h
const ScalarMath tan(const ScalarMath &x)
SincInterpShift()
Default constructor.
Definition: SincInterpShift.C:21
unsigned zap_period
Fundamental period of spike sequence to be zapped.
Definition: SincInterpShift.h:52
TextInterface::Parser * get_interface()
Return a text interface that can be used to configure this instance.
Definition: SincInterpShift.h:41
void frc1d(size_t nfft, float *into, const float *from)
void bcr1d(size_t nfft, float *into, const float *from)
const ScalarMath sin(const ScalarMath &x)
Estimate< double > get_shift() const
Return the shift estimate.
Definition: SincInterpShift.C:224
const ScalarMath cos(const ScalarMath &x)
Defines the PSRCHIVE library.
Definition: CalSource.h:17
SincInterpShift * clone() const
Return a copy constructed instance of self.
Definition: SincInterpShift.h:45

Generated using doxygen 1.8.17