ExponentialBaseline.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2005 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/General/Pulsar/ExponentialBaseline.h
10 
11 #ifndef __Pulsar_ExponentialBaseline_h
12 #define __Pulsar_ExponentialBaseline_h
13 
14 #include "Pulsar/IterativeBaseline.h"
15 
16 namespace Pulsar {
17 
19  class ExponentialBaseline : public IterativeBaseline {
20 
21  public:
22 
25 
28 
30  class Interface;
31 
33  ExponentialBaseline* clone () const;
34 
36  void set_threshold (float sigma);
37 
38  protected:
39 
41  float moment_correction;
42 
43  void get_bounds (PhaseWeight* weight, float& lower, float& upper);
44 
45  };
46 
47 }
48 
49 #endif
ExponentialBaseline * clone() const
Return a copy constructed instance of self.
Definition: ExponentialBaseline.C:23
ExponentialBaseline()
Default constructor.
Definition: ExponentialBaseline.C:18
TextInterface::Parser * get_interface()
Return a text interface that can be used to configure this instance.
Definition: ExponentialBaseline.C:79
Stores a weight for each Profile phase bin.
Definition: PhaseWeight.h:29
float moment_correction
Adjustment when computing variance of samples below threshold.
Definition: ExponentialBaseline.h:51
void set_threshold(float sigma)
Set the threshold below which samples are included in the baseline.
Definition: ExponentialBaseline.C:29
Finds a baseline that contains gaussian white noise.
Definition: ExponentialBaseline.h:24
Defines the PSRCHIVE library.
Definition: CalSource.h:17
void get_bounds(PhaseWeight *weight, float &lower, float &upper)
Derived classes must define the bounds.
Definition: ExponentialBaseline.C:43
double cumulative_mean(double x)

Generated using doxygen 1.8.17