LawnMower.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2007 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/RFIMitigation/Pulsar/LawnMower.h
10
11#ifndef __Pulsar_LawnMower_h
12#define __Pulsar_LawnMower_h
13
14#include "Pulsar/Mower.h"
15
16namespace Pulsar {
17
19 class OnPulseThreshold;
20 class PhaseWeight;
21
23
26
27 class LawnMower : public Mower
28 {
29
30 public:
31
33 LawnMower ();
34
36 ~LawnMower ();
37
38 void set_threshold (float sigma);
39
42 BaselineEstimator* get_baseline_estimator () const;
43
44 protected:
45
48
51
53 void compute (PhaseWeight* mask, const Profile* difference);
54
55 };
56
57}
58
59#endif
ProfileWeight algorithms that compute profile baselines.
Definition BaselineEstimator.h:19
LawnMower()
Default constructor.
Definition LawnMower.C:29
Reference::To< OnPulseThreshold > mower
Masks all points above a threshold.
Definition LawnMower.h:47
void set_baseline_estimator(BaselineEstimator *)
Set the BaselineEstimator used to find the baseline.
Definition LawnMower.C:63
void set_threshold(float sigma)
Set the threshold above which samples are mown.
Definition LawnMower.C:73
Reference::To< PhaseWeight > include
Points to be included in baseline estimator used by mower.
Definition LawnMower.h:50
void compute(PhaseWeight *mask, const Profile *difference)
Find the spikes in median smoothed difference and flag them in mask.
Definition LawnMower.C:79
~LawnMower()
Destructor.
Definition LawnMower.C:59
Mower()
Default constructor.
Definition Mower.C:25
Uses the baseline statistics to find on-pulse phase bins.
Definition OnPulseThreshold.h:26
Stores a weight for each Profile phase bin.
Definition PhaseWeight.h:24
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