Detrend.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2020 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/General/Pulsar/Detrend.h
10 
11 #ifndef __Pulsar_Detrend_h
12 #define __Pulsar_Detrend_h
13 
14 #include "Pulsar/Transformation.h"
15 
16 namespace Pulsar {
17 
18  class Profile;
19 
21  class Detrend : public Transformation<Profile> {
22 
23  public:
24 
26  Detrend ();
27 
29  ~Detrend ();
30 
32  void transform (Profile* profile);
33 
34  };
35 
36 }
37 
38 #endif
~Detrend()
Destructor.
Definition: Detrend.C:17
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
unsigned get_nbin() const
Return the number of bins.
Definition: ProfileAmps.h:50
void transform(Profile *profile)
Detrend the given Profile.
Definition: Detrend.C:21
Detrend()
Default constructor.
Definition: Detrend.C:13
Defines the PSRCHIVE library.
Definition: CalSource.h:17

Generated using doxygen 1.8.17