SPUC::allpass_1< Numeric, Coeff > Class Template Reference
[SPUC double templatesAllpass filters]

Template class for 1st order allpass filter with programmble gain and delay. More...

#include <allpass_1.h>

List of all members.

Public Member Functions

 allpass_1 (Coeff Gain=0, long s=1, long b=0)
 Constructor with gain and delay.
Coeff get_coefficient (void)
void reset ()
 Reset.
void init (Coeff Gain, long s)
 Initializes gain and delay.
Numeric clock (Numeric input)
 Shift inputs by one time sample and place new sample into array.

Protected Types

typedef mixed_type< Numeric,
Coeff >::dtype 
sum_type

Protected Attributes

long size
 number of unit sample delays
long round_bits
float_type gain
delay< Numeric > mult
delay< Numeric > sum
quantiser< Numeric > Q


Detailed Description

template<class Numeric, class Coeff = float_type>
class SPUC::allpass_1< Numeric, Coeff >

Template class for 1st order allpass filter with programmble gain and delay.

Template class for 1st-order Allpass filter. The filter is a "first-order" Allpass section of the form G(z,n) = (a*z^n + 1)/(z^n+a) The delay n can be specified

allpass_1.gif
Author:
Tony Kirke
allpass_1.png


Member Typedef Documentation

template<class Numeric, class Coeff = float_type>
typedef mixed_type<Numeric,Coeff>::dtype SPUC::allpass_1< Numeric, Coeff >::sum_type [protected]


Constructor & Destructor Documentation

template<class Numeric, class Coeff = float_type>
SPUC::allpass_1< Numeric, Coeff >::allpass_1 ( Coeff  Gain = 0,
long  s = 1,
long  b = 0 
) [inline]

Constructor with gain and delay.


Member Function Documentation

template<class Numeric, class Coeff = float_type>
Numeric SPUC::allpass_1< Numeric, Coeff >::clock ( Numeric  input  )  [inline]

Shift inputs by one time sample and place new sample into array.

template<class Numeric, class Coeff = float_type>
Coeff SPUC::allpass_1< Numeric, Coeff >::get_coefficient ( void   )  [inline]

template<class Numeric, class Coeff = float_type>
void SPUC::allpass_1< Numeric, Coeff >::init ( Coeff  Gain,
long  s 
) [inline]

Initializes gain and delay.

template<class Numeric, class Coeff = float_type>
void SPUC::allpass_1< Numeric, Coeff >::reset (  )  [inline]

Reset.


Member Data Documentation

template<class Numeric, class Coeff = float_type>
float_type SPUC::allpass_1< Numeric, Coeff >::gain [protected]

template<class Numeric, class Coeff = float_type>
delay<Numeric> SPUC::allpass_1< Numeric, Coeff >::mult [protected]

template<class Numeric, class Coeff = float_type>
quantiser<Numeric> SPUC::allpass_1< Numeric, Coeff >::Q [protected]

template<class Numeric, class Coeff = float_type>
long SPUC::allpass_1< Numeric, Coeff >::round_bits [protected]

template<class Numeric, class Coeff = float_type>
long SPUC::allpass_1< Numeric, Coeff >::size [protected]

number of unit sample delays

template<class Numeric, class Coeff = float_type>
delay<Numeric> SPUC::allpass_1< Numeric, Coeff >::sum [protected]


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