IntegrationWeight.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2005-2008 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/General/Pulsar/IntegrationWeight.h
10
11#ifndef _Pulsar_IntegrationWeight_H
12#define _Pulsar_IntegrationWeight_H
13
14#include "Pulsar/Weight.h"
15
16namespace Pulsar {
17
20 {
21
22 public:
23
26
28 void weight (Integration*);
29
31
35 void set_weight_absolute (bool f) { weight_absolute = f; }
36 bool get_weight_absolute () const { return weight_absolute; }
37
38 virtual double get_weight (const Integration*, unsigned ichan) = 0;
39
40 protected:
41
42 bool weight_absolute;
43
44 };
45
46}
47
48#endif
49
Array of Profiles integrated over the same time interval.
Definition Integration.h:37
IntegrationWeight()
Default constructor.
Definition IntegrationWeight.C:12
void set_weight_absolute(bool f)
Set weight equal to value or scale weight by value.
Definition IntegrationWeight.h:35
void weight(Integration *)
Set integration weights.
Definition IntegrationWeight.C:18
Array of Profiles integrated over the same time interval.
Definition Integration.h:37
Weight()
Default constructor.
Definition Weight.C:12
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0