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 
16 namespace Pulsar {
17 
19  class IntegrationWeight : public Weight
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 
void weight(Integration *)
Set integration weights.
Definition: IntegrationWeight.C:18
float get_weight(unsigned ichan) const
Get the Profile weight attribute of the given channel.
Definition: Integration.C:388
Array of Profiles integrated over the same time interval.
Definition: Integration.h:37
void set_weight(unsigned ichan, float weight)
Set the Profile weight attributes of the given channel.
Definition: Integration.C:401
virtual unsigned get_nchan() const =0
Get the number of chans.
void set_weight_absolute(bool f)
Set weight equal to value or scale weight by value.
Definition: IntegrationWeight.h:45
Defines the PSRCHIVE library.
Definition: CalSource.h:17
IntegrationWeight()
Default constructor.
Definition: IntegrationWeight.C:12

Generated using doxygen 1.8.17