NoiseStatistics.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/NoiseStatistics.h
10 
11 #ifndef __Pulsar_NoiseStatistics_h
12 #define __Pulsar_NoiseStatistics_h
13 
14 #include "ReferenceAble.h"
15 
16 namespace Pulsar {
17 
18  class Profile;
19 
21 
45  class NoiseStatistics : public Reference::Able {
46 
47  public:
48 
51 
53  void set_baseline_fourier (float width);
54 
56  void set_baseline_time (float width);
57 
59  float get_nfnr (const Profile* profile);
60 
61  protected:
62 
63  float baseline_fourier;
64  float baseline_time;
65 
66  };
67 
68 }
69 
70 #endif
NoiseStatistics()
Default constructor.
Definition: NoiseStatistics.C:21
float find_min_phase(float duty_cycle=default_duty_cycle) const
Returns the phase of the centre of the region with minimum mean.
Definition: Profile_find_minmax_phase.C:21
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
void set_baseline_fourier(float width)
Set the fractional number of high frequencies used to calculate noise.
Definition: NoiseStatistics.C:28
Profile * fourier_transform(const Profile *, FTransform::Plan *=0)
Return the forward Fourier transform of the input Profile.
Definition: Fourier.C:41
void detect(Profile *input)
Square-law detect the input complex-valued Profile.
Definition: Fourier.C:103
void stats(double *mean, double *variance=0, double *varmean=0, int bin_start=0, int bin_end=0) const
Calculates the mean, variance, and variance of the mean.
Definition: Profile_stats.C:27
Defines the PSRCHIVE library.
Definition: CalSource.h:17
void set_baseline_time(float width)
Set the fractional number of phase bins used to calculate noise.
Definition: NoiseStatistics.C:38
float get_nfnr(const Profile *profile)
Return the noise to Fourier noise ratio.
Definition: NoiseStatistics.C:48

Generated using doxygen 1.8.17