ManagedStrategies.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2018 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/Base/Classes/Pulsar/ManagedStrategies.h
10
11#ifndef __Pulsar_ManagedStrategies_h
12#define __Pulsar_ManagedStrategies_h
13
14#include "Pulsar/ProfileStrategies.h"
15
16namespace Pulsar {
17
18 class Integration;
19
21
60 {
62 bool to_clone = false;
63
64 public:
65
68
71
74
77
80
82 ProfileWeightFunction* baseline () const override;
83
85 ProfileWeightFunction* onpulse () const override;
86
88 SNRatioEstimator* snratio () const override;
89
91 WidthEstimator* width () const override;
92
94 ManagedStrategies* clone () const override;
95
97 bool to_be_cloned () const { return to_clone; }
98 };
99}
100
101#endif
Array of Profiles integrated over the same time interval.
Definition Integration.h:37
ProfileWeightFunction * baseline() const override
The implementation of the baseline finding algorithm.
Definition ManagedStrategies.C:50
WidthEstimator * width() const override
The implementation of the pulse width estimator.
Definition ManagedStrategies.C:68
~ManagedStrategies()
Destructor.
Definition ManagedStrategies.C:34
Integration * get_container()
Return the container.
Definition ManagedStrategies.C:40
ManagedStrategies(Integration *)
Construct with a pointer to the container.
Definition ManagedStrategies.C:18
bool to_be_cloned() const
Return true if the container strategy should be cloned.
Definition ManagedStrategies.h:97
ManagedStrategies * clone() const override
Clone.
Definition ManagedStrategies.C:45
ProfileWeightFunction * onpulse() const override
The implementation of the on-pulse finding algorithm.
Definition ManagedStrategies.C:56
SNRatioEstimator * snratio() const override
The implementation of the signal-to-noise ratio calculation.
Definition ManagedStrategies.C:62
PhaseWeight algorithms that receive an input Profile.
Definition ProfileWeightFunction.h:22
Manages the strategies that implement algorithms.
Definition ProfileStrategies.h:22
Algorithms that estimate the signal-to-noise ratio of pulse profiles.
Definition SNRatioEstimator.h:23
Algorithms that estimate the width of the pulse profile.
Definition WidthEstimator.h:27
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0