SMROTwoBitCorrection.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004 by Craig West
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/lbadr/dsp/SMROTwoBitCorrection.h
10 
11 #ifndef __SMROTwoBitCorrection_h
12 #define __SMROTwoBitCorrection_h
13 
14 #include "dsp/SubByteTwoBitCorrection.h"
15 
16 namespace dsp {
17 
19  class SMROTwoBitCorrection: public SubByteTwoBitCorrection {
20 
21  public:
22 
25 
27  virtual bool matches (const Observation* observation);
28 
30  virtual unsigned get_ndig () const;
31 
33  virtual unsigned get_ndig_per_byte () const;
34 
36  /*
37  virtual void dig_unpack (float* output_data,
38  const unsigned char* input_data,
39  uint64_t ndat,
40  unsigned digitizer,
41  unsigned* weights,
42  unsigned nweights);
43  */
44  };
45 
46 }
47 
48 #endif
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
virtual unsigned get_ndig() const
Over-ride the TwoBitCorrection default.
Definition: SMROTwoBitCorrection.C:32
Signal::State get_state() const
Return the state of the signal.
Definition: Observation.h:70
unsigned get_nbit() const
Return the number of bits per value.
Definition: Observation.h:95
virtual bool matches(const Observation *observation)
Return true if SMROTwoBitCorrection can convert the Observation.
Definition: SMROTwoBitCorrection.C:10
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
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_ndig_per_byte() const
Over-ride the TwoBitCorrection default.
Definition: SMROTwoBitCorrection.C:49
SMROTwoBitCorrection()
Constructor initializes base class atributes.
Definition: SMROTwoBitCorrection.C:18
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