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
16namespace Pulsar {
17
20
21 public:
22
24 SNRWeight ();
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
Array of Profiles integrated over the same time interval.
Definition Integration.h:37
IntegrationWeight()
Default constructor.
Definition IntegrationWeight.C:12
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:27
SNRWeight()
Default constructor.
Definition SNRWeight.C:13
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0