BaselineEstimator.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/BaselineEstimator.h
10
11#ifndef __Pulsar_BaselineFunction_h
12#define __Pulsar_BaselineFunction_h
13
14#include "Pulsar/ProfileWeightFunction.h"
15
16namespace Pulsar {
17
20
21 public:
22
25
28
31
33 PhaseWeight* operate (const Profile*);
34
36 void set_median_cut (float threshold);
37
39 virtual BaselineEstimator* clone () const = 0;
40
41 protected:
42
43 float median_cut;
44
45 };
46
47}
48
49
50#endif // !defined __Pulsar_BaselineWeight_h
PhaseWeight * operator()(const Profile *)
Returns a new PhaseWeight instance.
Definition BaselineEstimator.C:79
PhaseWeight * operate(const Profile *)
Convenience interface.
Definition BaselineEstimator.C:43
void set_median_cut(float threshold)
Cut samples from baseline with median difference over threshold.
Definition BaselineEstimator.C:37
BaselineEstimator()
Default constructor.
Definition BaselineEstimator.C:27
virtual BaselineEstimator * clone() const =0
Return a copy constructed instance of self.
PhaseWeight * baseline(const Profile *)
Returns a new PhaseWeight instance.
Definition BaselineEstimator.C:73
Stores a weight for each Profile phase bin.
Definition PhaseWeight.h:24
ProfileWeightFunction()
Default constructor.
Definition ProfileWeightFunction.C:15
Any quantity recorded as a function of pulse phase.
Definition Profile.h:40
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0