AddNoise.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2023 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/General/Pulsar/AddNoise.h
10
11#ifndef __Pulsar_AddNoise_h
12#define __Pulsar_AddNoise_h
13
14#include "Pulsar/Transformation.h"
15#include "BoxMuller.h"
16
17namespace Pulsar {
18
19 class Profile;
20
22 class AddNoise : public Transformation<Profile>
23 {
24 BoxMuller gasdev;
25 double sigma;
26
27 public:
28
30 AddNoise (double sigma);
31
33 ~AddNoise ();
34
36 void transform (Profile* profile);
37
38 };
39
40}
41
42#endif
void transform(Profile *profile)
AddNoise the given Profile.
Definition AddNoise.C:22
AddNoise(double sigma)
Default constructor.
Definition AddNoise.C:13
~AddNoise()
Destructor.
Definition AddNoise.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