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 
17 namespace 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
Warning warning
Warning messages filter.
Definition: Pulsar.C:12
~AddNoise()
Destructor.
Definition: AddNoise.C:18
const float * get_amps() const
Return a pointer to the amplitudes array.
Definition: ProfileAmps.C:141
const Integration * get_Integration(const Archive *data, Index subint)
Return the requested profile, cloning and integrating when needed.
Definition: Index.C:118
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
const std::string & get_unit() const
physical unit of the information
Definition: Pointing.h:141
Extra pointing information.
Definition: Pointing.h:125
void add_Pointing_columns(fitsfile *) const
Add additional Pointing::Info columns, if needed.
Definition: add_Pointing_columns.C:30
void transform(Profile *profile)
AddNoise the given Profile.
Definition: AddNoise.C:22
const std::string & get_description() const
description of the information
Definition: Pointing.h:145
AddNoise(double sigma)
Default constructor.
Definition: AddNoise.C:13
Defines the PSRCHIVE library.
Definition: CalSource.h:17
const std::string & get_name() const
name of the information
Definition: Pointing.h:137
int get_last_pointing_column(fitsfile *fptr) const
Get the column past which to write/read additional Pointing::Info.
Definition: add_Pointing_columns.C:14
Telescope pointing parameters recorded during the observation.
Definition: Pointing.h:27

Generated using doxygen 1.8.17