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
16namespace Pulsar {
17
18 class Profile;
19
21 class Accumulate : public Transformation<Profile> {
22
23 public:
24
26 Accumulate ();
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
double get_baseline() const
Get the baseline.
Definition Accumulate.C:39
unsigned offset
The offset.
Definition Accumulate.h:49
unsigned get_offset() const
Get the offset.
Definition Accumulate.C:29
void transform(Profile *profile)
Form the cummulative profile.
Definition Accumulate.C:44
Accumulate()
Default constructor.
Definition Accumulate.C:13
void set_baseline(double)
Set the baseline.
Definition Accumulate.C:34
double baseline
The baseline.
Definition Accumulate.h:52
void set_offset(unsigned)
Set the offset.
Definition Accumulate.C:24
~Accumulate()
Destructor.
Definition Accumulate.C:19
Any quantity recorded as a function of pulse phase.
Definition Profile.h:40
Algorithms that modify data in the Container.
Definition Transformation.h:20
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0