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
16namespace Pulsar {
17
18 class Profile;
19
21 class Differentiate : public Transformation<Profile> {
22
23 public:
24
26 Differentiate (unsigned span = 1);
27
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
unsigned span
The number of phase bins in the window used to smooth.
Definition Differentiate.h:43
Differentiate(unsigned span=1)
Default constructor.
Definition Differentiate.C:13
void transform(Profile *profile)
Differentiate the given Profile.
Definition Differentiate.C:23
void set_span(unsigned)
Set the phase bin offset added and subtracted from each bin.
unsigned get_span() const
Get the phase bin offset added and subtracted from each bin.
~Differentiate()
Destructor.
Definition Differentiate.C:18
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