CPSRTwoBitCorrection.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2002 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/cpsr/dsp/CPSRTwoBitCorrection.h
10 
11 #ifndef __CPSRTwoBitCorrection_h
12 #define __CPSRTwoBitCorrection_h
13 
14 #include "dsp/SubByteTwoBitCorrection.h"
15 
16 namespace dsp {
17 
19  class CPSRTwoBitCorrection: public SubByteTwoBitCorrection {
20 
21  public:
22 
25 
27  virtual bool matches (const Observation* observation);
28 
30  virtual unsigned get_ndig_per_byte () const;
31 
33  virtual unsigned get_output_offset (unsigned idig) const;
34 
36  virtual unsigned get_output_ipol (unsigned idig) const;
37 
39  virtual unsigned get_output_incr () const;
40 
42  virtual unsigned get_shift (unsigned idig, unsigned isamp) const;
43 
44  };
45 
46 }
47 
48 #endif
virtual unsigned get_output_ipol(unsigned idig) const
Over-ride the TwoBitCorrection default.
Definition: CPSRTwoBitCorrection.C:45
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
virtual void set_ndig(unsigned ndig)
Set the number of digitizers (histograms)
Definition: HistUnpacker.C:64
CPSRTwoBitCorrection()
Constructor initializes base class atributes.
Definition: CPSRTwoBitCorrection.C:18
virtual bool matches(const Observation *observation)
Return true if CPSRTwoBitCorrection can convert the Observation.
Definition: CPSRTwoBitCorrection.C:12
virtual unsigned get_output_offset(unsigned idig) const
Over-ride the TwoBitCorrection default.
Definition: CPSRTwoBitCorrection.C:33
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
virtual unsigned get_output_incr() const
Over-ride the TwoBitCorrection default.
Definition: CPSRTwoBitCorrection.C:39
Reference::To< TwoBitTable > table
Two-bit conversion table generator.
Definition: TwoBitCorrection.h:96
Look-up table for converting 2-bit digitized to floating point numbers.
Definition: TwoBitTable.h:25
virtual unsigned get_shift(unsigned idig, unsigned isamp) const
Over-ride the SubByteTwoBitCorrection default.
Definition: CPSRTwoBitCorrection.C:60
virtual unsigned get_ndig_per_byte() const
Over-ride the TwoBitCorrection default.
Definition: CPSRTwoBitCorrection.C:26
std::string get_machine() const
Return the instrument used to record signal.
Definition: Observation.h:194
Converts BitSeries data from two-bit digitized to floating-point values.
Definition: SubByteTwoBitCorrection.h:29

Generated using doxygen 1.8.17