SPUC  3.0
Public Member Functions | Protected Attributes | List of all members
SPUC::qnoise< Numeric > Class Template Reference

class to add quantization noise to signal More...

#include <qnoise.h>

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. More...
 
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

References SPUC::qnoise< Numeric >::scale.

Member Function Documentation

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

References SPUC::qnoise< Numeric >::quant().

Here is the call graph for this function:

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

References SPUC::qnoise< Numeric >::quant().

Here is the call graph for this function:

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
template<class Numeric>
char SPUC::qnoise< Numeric >::size
protected

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