SNRWeight.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2006-2008 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/General/Pulsar/SNRWeight.h
10 
11 #ifndef _Pulsar_SNRWeight_H
12 #define _Pulsar_SNRWeight_H
13 
14 #include "Pulsar/IntegrationWeight.h"
15 
16 namespace Pulsar {
17 
19  class SNRWeight : public IntegrationWeight {
20 
21  public:
22 
25 
27  void set_threshold (float f) { threshold = f; }
28  float get_threshold () const { return threshold; }
29 
31  double get_weight (const Integration* integration, unsigned ichan);
32 
33  protected:
34 
35  float threshold;
36 
37  };
38 
39 }
40 
41 #endif
42 
float snr() const
Returns the signal to noise ratio of the profile.
Definition: Profile_snr.C:15
double get_weight(const Integration *integration, unsigned ichan)
Get the weight of the specified channel.
Definition: SNRWeight.C:19
void set_threshold(float f)
Set weight to zero if S/N falls below threshold.
Definition: SNRWeight.h:37
Array of Profiles integrated over the same time interval.
Definition: Integration.h:37
SNRWeight()
Default constructor.
Definition: SNRWeight.C:13
Defines the PSRCHIVE library.
Definition: CalSource.h:17
Profile * get_Profile(unsigned ipol, unsigned ichan)
Returns a pointer to the Profile given by the specified indeces.
Definition: Integration.C:306

Generated using doxygen 1.8.17