Differentiate.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/General/Pulsar/Differentiate.h
10 
11 #ifndef __Pulsar_Differentiate_h
12 #define __Pulsar_Differentiate_h
13 
14 #include "Pulsar/Transformation.h"
15 
16 namespace Pulsar {
17 
18  class Profile;
19 
21  class Differentiate : public Transformation<Profile> {
22 
23  public:
24 
26  Differentiate (unsigned span = 1);
27 
29  ~Differentiate ();
30 
32  void set_span (unsigned);
33 
35  unsigned get_span () const;
36 
38  void transform (Profile* profile);
39 
40  protected:
41 
43  unsigned span;
44 
45  };
46 
47 }
48 
49 #endif
Application with basic command line options.
Definition: Application.h:30
unsigned get_span() const
Get the phase bin offset added and subtracted from each bin.
const float * get_amps() const
Return a pointer to the amplitudes array.
Definition: ProfileAmps.C:141
void set_amps(const T *data)
set the amplitudes array equal to the contents of the data array
Definition: ProfileAmps.h:89
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
The primary interface to pulsar observational data.
Definition: Archive.h:45
unsigned get_nbin() const
Return the number of bins.
Definition: ProfileAmps.h:50
Type * get() const
unsigned span
The number of phase bins in the window used to smooth.
Definition: Differentiate.h:48
Stores PolnCalibrator parameters in an Archive instance.
Definition: PolnCalibratorExtension.h:28
virtual void add(Item *)
void transform(Profile *profile)
Differentiate the given Profile.
Definition: Differentiate.C:23
~Differentiate()
Destructor.
Definition: Differentiate.C:18
Polarimetric calibrators.
Definition: PolnCalibrator.h:41
Differentiate(unsigned span=1)
Default constructor.
Definition: Differentiate.C:13
Defines the PSRCHIVE library.
Definition: CalSource.h:17
Represents the system as a Calibration::SingleAxis.
Definition: SingleAxisCalibrator.h:26
void set_span(unsigned)
Set the phase bin offset added and subtracted from each bin.

Generated using doxygen 1.8.17