Unpack four 2-bit samples per byte from an array of bytes. More...

#include <TwoBitFour.h>

Inheritance diagram for dsp::TwoBitFour:
dsp::TwoBitLookup

Public Member Functions

void lookup_build (TwoBitTable *, JenetAnderson98 *=0)
 Build the output value lookup table.
 
void nlow_build (TwoBitTable *table)
 Build counts of low voltage 2-bit states in each byte.
 
void get_lookup_block (float *lookup, TwoBitTable *table)
 Implement TwoBitLookup::get_lookup_block.
 
unsigned get_lookup_block_size ()
 Implement TwoBitLookup::get_lookup_block_size.
 
template<class Iterator >
void prepare (Iterator input, unsigned ndat)
 
template<class Iterator >
void unpack (Iterator &input, unsigned ndat, float *output, unsigned output_incr, unsigned &_nlow)
 
- Public Member Functions inherited from dsp::TwoBitLookup
void set_ndat (unsigned ndat)
 Set the number of time samples in each population counted.
 
void set_ndim (unsigned ndim)
 Set the dimension of the time samples (1=real, 2=complex)
 
void set_nlow_min (unsigned min)
 Set the minimum acceptable number of low voltage states.
 
void set_nlow_max (unsigned max)
 Set the maximum acceptable number of low voltage states.
 

Public Attributes

bool bad
 Flag set when the data should be flagged as bad.
 

Static Public Attributes

static const unsigned samples_per_byte = 4
 
static const unsigned lookup_block_size = 4 * 256
 

Protected Attributes

char nlow_lookup [256]
 
- Protected Attributes inherited from dsp::TwoBitLookup
unsigned nlow
 
unsigned nlow_min
 
unsigned nlow_max
 
unsigned ndat
 
unsigned ndim
 
float * lookup_base
 

Additional Inherited Members

- Protected Member Functions inherited from dsp::TwoBitLookup
virtual void create ()
 

Detailed Description

Unpack four 2-bit samples per byte from an array of bytes.


The documentation for this class was generated from the following files:

Generated using doxygen 1.8.17