PhaseWeightModifier.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/PhaseWeightModifier.h
10
11#ifndef __Pulsar_PhaseWeightModifier_h
12#define __Pulsar_PhaseWeightModifier_h
13
14#include "Pulsar/PhaseWeightFunction.h"
15
16namespace Pulsar {
17
18 class Profile;
19
22
23 public:
24
26 virtual void set_weight (const PhaseWeight*);
27
29 virtual void get_weight (PhaseWeight* weight);
30
33
36
37 protected:
38
41
43 virtual void calculate (PhaseWeight*) = 0;
44
45 };
46
47}
48
49
50#endif // !defined __Pulsar_PhaseWeightModifier_h
Algorithms that produce PhaseWeight objects.
Definition PhaseWeightFunction.h:26
PhaseWeight algorithms that receive an input PhaseWeight.
Definition PhaseWeightModifier.h:21
void operator()(PhaseWeight *)
Inplace operator.
Definition PhaseWeightModifier.C:13
virtual void get_weight(PhaseWeight *weight)
Returns a PhaseWeight.
Definition PhaseWeightModifier.C:26
virtual void calculate(PhaseWeight *)=0
Derived classes implement the PhaseWeight calculation.
Reference::To< const PhaseWeight > input_weight
The PhaseWeight from which the PhaseWeight will be derived.
Definition PhaseWeightModifier.h:40
TextInterface::Parser * get_interface()
Return a text interface that can be used to configure this instance.
Definition PhaseWeightModifier.C:56
virtual void set_weight(const PhaseWeight *)
Set the PhaseWeight from which the PhaseWeight will be derived.
Definition PhaseWeightModifier.C:20
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