Ask a Question | Search PSRCHIVE: |
Home
|
Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
Protected Attributes |
List of all members
Pulsar::GaussianBaseline Class Reference Adaptively computes the baseline, assuming normally distributed noise. More...
Inheritance diagram for Pulsar::GaussianBaseline:
Detailed DescriptionAdaptively computes the baseline, assuming normally distributed noise. The GaussianBaseline class uses an iterative method to better estimate of the off-pulse baseline. The BaselineWindow algorithm systematically under-estimates the mean of the off-pulse baseline and, for pulsars with small duty cycles, does not make full use of all off-pulse samples (more samples reduce the uncertainty in the estimate of the off-pulse mean). GaussianBaseline addresses these issues by iteratively computing the mean and r.m.s. and excluding all points that lie greater than threshold (default threshold equals one sigma) away from the current mean. The one-sigma cutoff neatly omits the on-pulse points, but also necessitates correction of the estimate of the variance, which is given by the integral where is the threshold (with no cutoff, ) Computation of the correction factor requires an assumption about the probability distribution, ; GaussianBaseline assumes normally distributed measurement noise. After creating the baseline mask, GaussianBaseline performs two clean-up tasks: 1) Any isolated masked samples are converted to not-masked (not necessarily on-pulse), and any isolated not-masked samples are converted to masked. "Isolated" is defined as a single state surrounded by opposite states. This step fills in the few random holes left by samples greater than threshold from the mean. 2) A list is made of all of the transitions from masked to not-masked regions (and vice versa), a box-car smoothed version of the profile is made (default smoothing factor equals 4) and, beginning at each transition from not-masked to masked, masked points are converted to not-masked until the smoothed profile falls below the off-pulse mean. This step peels the baseline mask away from the on-pulse regions (where the pulse is weak, the iterative baseline can creep up the wings of the pulse). When any of the above steps fails, GaussianBaseline reverts to the dependable BaselineWindow method. The documentation for this class was generated from the following files:
Generated using doxygen 1.8.17
|