SPUC::qnoise< Numeric > Class Template Reference
[Miscellaneous DSPSimulation classes And functions]

class to add quantization noise to signal More...

#include <qnoise.h>

List of all members.

Public Member Functions

 qnoise (char h)
Numeric quant (Numeric x)
Numeric operator() (Numeric x)
complex< Numeric > operator() (complex< Numeric > x)

Protected Attributes

char size
float_type scale
 Number of bits <= 255.
float_type iscale


Detailed Description

template<class Numeric>
class SPUC::qnoise< Numeric >

class to add quantization noise to signal

Bit width is specified in constructor. Default is 8 bits. add quantization noise but does not change underlying type of input for fundamental types Handles real and complex samples

Author:
Tony Kirke


Constructor & Destructor Documentation

template<class Numeric>
SPUC::qnoise< Numeric >::qnoise ( char  h  )  [inline]

Quantize and limit signal to size bits Constructor


Member Function Documentation

template<class Numeric>
complex<Numeric> SPUC::qnoise< Numeric >::operator() ( complex< Numeric >  x  )  [inline]

template<class Numeric>
Numeric SPUC::qnoise< Numeric >::operator() ( Numeric  x  )  [inline]

template<class Numeric>
Numeric SPUC::qnoise< Numeric >::quant ( Numeric  x  )  [inline]


Member Data Documentation

template<class Numeric>
float_type SPUC::qnoise< Numeric >::iscale [protected]

template<class Numeric>
float_type SPUC::qnoise< Numeric >::scale [protected]

Number of bits <= 255.

template<class Numeric>
char SPUC::qnoise< Numeric >::size [protected]


The documentation for this class was generated from the following file:
Generated on Mon Jun 9 19:40:50 2008 for DSPTemplates by  doxygen 1.4.7