Accumulate.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/Accumulate.h
10 
11 #ifndef __Pulsar_Accumulate_h
12 #define __Pulsar_Accumulate_h
13 
14 #include "Pulsar/Transformation.h"
15 
16 namespace Pulsar {
17 
18  class Profile;
19 
21  class Accumulate : public Transformation<Profile> {
22 
23  public:
24 
27 
29  ~Accumulate ();
30 
32  void set_offset (unsigned);
33 
35  unsigned get_offset () const;
36 
38  void set_baseline (double);
39 
41  double get_baseline () const;
42 
44  void transform (Profile* profile);
45 
46  protected:
47 
49  unsigned offset;
50 
52  double baseline;
53 
54  };
55 
56 }
57 
58 #endif
void transform(Profile *profile)
Form the cummulative profile.
Definition: Accumulate.C:44
unsigned get_offset() const
Get the offset.
Definition: Accumulate.C:29
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
~Accumulate()
Destructor.
Definition: Accumulate.C:19
double baseline
The baseline.
Definition: Accumulate.h:57
Accumulate()
Default constructor.
Definition: Accumulate.C:13
void set_baseline(double)
Set the baseline.
Definition: Accumulate.C:34
void set_offset(unsigned)
Set the offset.
Definition: Accumulate.C:24
Defines the PSRCHIVE library.
Definition: CalSource.h:17
double get_baseline() const
Get the baseline.
Definition: Accumulate.C:39
unsigned offset
The offset.
Definition: Accumulate.h:54

Generated using doxygen 1.8.17