Miscellaneous DSP

Collaboration diagram for Miscellaneous DSP:


Classes

class  SPUC::a_d
 An A/D conversion class. More...
class  SPUC::circ_buffer< T >
 Circular Buffer. More...
class  SPUC::cordic< Numeric >
 Cordic rotator. More...
class  SPUC::delay< Numeric >
 Template class for Delay line. More...
class  SPUC::max_pn
 Maximal Length Pseudorandom sequence generator. More...
class  SPUC::noise
 Gaussian noise routine. More...
class  SPUC::qnoise< Numeric >
 class to add quantization noise to signal More...
class  SPUC::quantiser< Numeric >
 ........ More...
class  SPUC::rv_stat
 a basic random Variable Statistics Class More...
class  SPUC::sigma_delta
 Simple 1st order All-digital Sigma Delta converter. More...

Typedefs

typedef complex< float_typeSPUC::CPLX
 General Purpose C++ complex FFT Transform.

Functions

template<class T>
smart_array< T > SPUC::auto_corr (smart_array< T > x)
 Compute the autocorrelation of the Vector.
template<class T>
smart_array< T > SPUC::burg (smart_array< T > x, int P)
 AR model coefficients calculation using Burg algorithm.
template<typename T>
SPUC::conj (T in)
 Templated conjugate function template function that uses a class to allow template specialization.
template<class T>
smart_array< T > SPUC::convolve (smart_array< T > x, smart_array< T > y)
smart_array< complex< float_type > > SPUC::find_roots (smart_array< float_type > a, long n)
 Calculate the complex roots of a polynomial equation.
template<class T>
smart_array< T > SPUC::fliplr (smart_array< T > x)
 fliplr - same as matlab function
template<class T>
complex< float_typeSPUC::freqz_point (smart_array< T > b, smart_array< T > a, float_type freq, int N)
 frequency transfer function at freq with iir A and B equations
template<class T>
float_type SPUC::freqz_mag_point (smart_array< T > x, float_type freq, int N)
 frequency magnitude function at freq with fir x
template<class T>
complex< float_typeSPUC::freqz_point (T a, float_type freq)
 frequency transfer function at freq for 1st order allpass
template<class T>
smart_array< complex< float_type > > SPUC::freqz (smart_array< T > b, smart_array< T > a, int pts)
 frequency transfer function over "pts" points for IIR
template<class T>
smart_array< complex< float_type > > SPUC::freqz_mag (smart_array< T > b, smart_array< T > a, int pts)
 frequency magnitude function over "pts" points for IIR
template<class T>
smart_array< complex< float_type > > SPUC::freqz_fir (smart_array< T > x, int pts)
 frequency magnitude function over "pts" points for FIR
template<class T>
smart_array< T > SPUC::levdur (smart_array< T > R)
 Template class for Levinson-Durbin algorithm.
template<typename T>
base_type< T >::btype SPUC::magsq (T in)
 Templated Magnitude Squared function template function that uses a class to allow template specialization.
template<class T>
smart_array< T > SPUC::partial_convolve (smart_array< T > x, smart_array< T > y, int N, int M)
template<class T>
complex< float_typeSPUC::ptr_freqz_point (T *b, T *a, float_type freq, int N)
 frequency transfer function at freq with iir A and B equations
template<class T>
float_type SPUC::ptr_freqz_mag_point (T *x, float_type freq, int N)
 frequency magnitude function at freq with fir x
template<class T>
complex< float_typeSPUC::ptr_freqz_point (T a, float_type freq)
 frequency transfer function at freq for 1st order allpass
template<class T>
void SPUC::freqz (complex< float_type > *f, T *b, T *a, int N, int pts)
 frequency transfer function over "pts" points for IIR
template<class T>
void SPUC::ptr_freqz_mag (float_type *f, T *b, T *a, int N, int pts)
 frequency magnitude function over "pts" points for IIR
template<class T>
void SPUC::ptr_freqz_fir (complex< float_type > *f, T *x, int N, int pts)
 frequency magnitude function over "pts" points for FIR
template<typename T>
quantized_type< T >::dtype SPUC::quantize (T in)
 Templated Quantize function template function that uses a class to allow template specialization.
template<class T>
long SPUC::real_quantize (T in)
 Templated quantize function.
template<class T>
SPUC::real_round (T in, long bits)
 Templated round function.
template<class T>
SPUC::real_saturate (T in, long bits)
 Templated saturation functions.
template<>
long SPUC::real_saturate (long in, long bits)
 Templated saturation functions.
template<class T>
SPUC::round (T in, long bits)
 Templated round function template function that uses a class to allow template specialization.
template<class T>
SPUC::saturate (T in, long bits)
 Templated saturate function template function that uses a class to allow template specialization.
template<typename T>
SPUC::signbit (T in)
 Templated signbit function template function that uses a class to allow template specialization.
template<class T>
void SPUC::toeplitz (vector< T > x, matrix< T > &A)
 Get Symmetric Toeplitz matrix from vector.
 SPUC::cfft::cfft (int size, float_type scalef1=0.5, float_type scalef2=1.0, float_type scalei1=1.0, float_type scalei2=1.0)
 General Purpose C++ complex FFT Transform.

Typedef Documentation

typedef complex<float_type> SPUC::CPLX

General Purpose C++ complex FFT Transform.

This is a general-purpose C++ complex FFT transform class. it is defined as a template over a complex type. For instance, if using gnu gcc, the complex type is complex<float_type> And you declare the cfft class as cfft<complex<float_type>>

The underlying CPLX type requires: CPLX() operator = , CPLX(CPLX const&) CPLX(float_type,float_type) [used on cos/sin] CPLX operator*( CPLX , float_type ) CPLX conj(CPLX const &); [conjugate] ComPlex::operator @ (CPLX , CPLX ) [ where @ =* + - ]

Author:
Tony Kirke


Function Documentation

template<class T>
smart_array<T> SPUC::auto_corr ( smart_array< T >  x  ) 

Compute the autocorrelation of the Vector.

Author:
Tony Kirke, Copyright(c) 2001

Tony Kirke

template<class T>
smart_array<T> SPUC::burg ( smart_array< T >  x,
int  P 
)

AR model coefficients calculation using Burg algorithm.

Author:
Tony Kirke, Copyright(c) 2001

Tony Kirke

SPUC::cfft::cfft ( int  size,
float_type  scalef1 = 0.5,
float_type  scalef2 = 1.0,
float_type  scalei1 = 1.0,
float_type  scalei2 = 1.0 
) [inherited]

General Purpose C++ complex FFT Transform.

template<typename T>
T SPUC::conj ( in  ) 

Templated conjugate function template function that uses a class to allow template specialization.

Author:
Tony Kirke

template<class T>
smart_array<T> SPUC::convolve ( smart_array< T >  x,
smart_array< T >  y 
)

Author:
Tony Kirke, Copyright(c) 2001

Tony Kirke

smart_array< complex< float_type > > SPUC::find_roots ( smart_array< float_type a,
long  n 
)

Calculate the complex roots of a polynomial equation.

Author:
Tony Kirke

template<class T>
smart_array<T> SPUC::fliplr ( smart_array< T >  x  ) 

fliplr - same as matlab function

Author:
Tony Kirke

template<class T>
void SPUC::freqz ( complex< float_type > *  f,
T *  b,
T *  a,
int  N,
int  pts 
)

frequency transfer function over "pts" points for IIR

Author:
Tony Kirke

template<class T>
smart_array<complex<float_type> > SPUC::freqz ( smart_array< T >  b,
smart_array< T >  a,
int  pts 
)

frequency transfer function over "pts" points for IIR

Author:
Tony Kirke

template<class T>
smart_array<complex<float_type> > SPUC::freqz_fir ( smart_array< T >  x,
int  pts 
)

frequency magnitude function over "pts" points for FIR

Author:
Tony Kirke

template<class T>
smart_array<complex<float_type> > SPUC::freqz_mag ( smart_array< T >  b,
smart_array< T >  a,
int  pts 
)

frequency magnitude function over "pts" points for IIR

Author:
Tony Kirke

template<class T>
float_type SPUC::freqz_mag_point ( smart_array< T >  x,
float_type  freq,
int  N 
)

frequency magnitude function at freq with fir x

Author:
Tony Kirke

template<class T>
complex<float_type> SPUC::freqz_point ( a,
float_type  freq 
)

frequency transfer function at freq for 1st order allpass

Author:
Tony Kirke

template<class T>
complex<float_type> SPUC::freqz_point ( smart_array< T >  b,
smart_array< T >  a,
float_type  freq,
int  N 
)

frequency transfer function at freq with iir A and B equations

Author:
Tony Kirke

template<class T>
smart_array<T> SPUC::levdur ( smart_array< T >  R  ) 

Template class for Levinson-Durbin algorithm.

<font color="red">Under construction!</font>

Author:
Tony Kirke

template<typename T>
base_type< T >::btype SPUC::magsq ( in  ) 

Templated Magnitude Squared function template function that uses a class to allow template specialization.

Author:
Tony Kirke

template<class T>
smart_array<T> SPUC::partial_convolve ( smart_array< T >  x,
smart_array< T >  y,
int  N,
int  M 
)

Author:
Tony Kirke, Copyright(c) 2001

Tony Kirke

template<class T>
void SPUC::ptr_freqz_fir ( complex< float_type > *  f,
T *  x,
int  N,
int  pts 
)

frequency magnitude function over "pts" points for FIR

Author:
Tony Kirke

template<class T>
void SPUC::ptr_freqz_mag ( float_type f,
T *  b,
T *  a,
int  N,
int  pts 
)

frequency magnitude function over "pts" points for IIR

Author:
Tony Kirke

template<class T>
float_type SPUC::ptr_freqz_mag_point ( T *  x,
float_type  freq,
int  N 
)

frequency magnitude function at freq with fir x

Author:
Tony Kirke

template<class T>
complex<float_type> SPUC::ptr_freqz_point ( a,
float_type  freq 
)

frequency transfer function at freq for 1st order allpass

Author:
Tony Kirke

template<class T>
complex<float_type> SPUC::ptr_freqz_point ( T *  b,
T *  a,
float_type  freq,
int  N 
)

frequency transfer function at freq with iir A and B equations

Author:
Tony Kirke

template<typename T>
quantized_type<T>::dtype SPUC::quantize ( in  ) 

Templated Quantize function template function that uses a class to allow template specialization.

Author:
Tony Kirke

template<class T>
long SPUC::real_quantize ( in  ) 

Templated quantize function.

Author:
Tony Kirke

template<class T>
T SPUC::real_round ( in,
long  bits 
)

Templated round function.

Author:
Tony Kirke

template<>
long SPUC::real_saturate ( long  in,
long  bits 
) [inline]

Templated saturation functions.

Author:
Tony Kirke

template<class T>
T SPUC::real_saturate ( in,
long  bits 
)

Templated saturation functions.

Author:
Tony Kirke

template<class T>
T SPUC::round ( in,
long  bits 
)

Templated round function template function that uses a class to allow template specialization.

Author:
Tony Kirke

template<class T>
T SPUC::saturate ( in,
long  bits 
)

Templated saturate function template function that uses a class to allow template specialization.

Author:
Tony Kirke

template<typename T>
T SPUC::signbit ( in  ) 

Templated signbit function template function that uses a class to allow template specialization.

Author:
Tony Kirke

template<class T>
void SPUC::toeplitz ( vector< T >  x,
matrix< T > &  A 
)

Get Symmetric Toeplitz matrix from vector.

Author:
Tony Kirke, Copyright(c) 2001

Tony Kirke


Generated on Mon Jun 9 19:40:21 2008 for DSPTemplates by  doxygen 1.4.7