SPUC::iir_1st< Numeric > Class Template Reference
[IIR filters]
Template Class for 1st Order iir filter.
More...
#include <iir_1st.h>
Collaboration diagram for SPUC::iir_1st< Numeric >:
[legend]List of all members.
|
Public Member Functions |
| iir_1st (double A=0) |
void | set_coeff (double A) |
| iir_1st (const char *file) |
| Constructor reading coefficient from a file.
|
void | print () |
| Print out coefficients.
|
Numeric | clock (Numeric input) |
| Input new sample and calculate output.
|
void | reset () |
| Reset.
|
Protected Attributes |
double | gain |
Numeric | out |
Numeric | previous_out |
Numeric | previous_in |
Detailed Description
template<class Numeric>
class SPUC::iir_1st< Numeric >
Template Class for 1st Order iir filter.
Template for 1st Order IIR filter
The filter is assumed the first order low pass digital filter generated by the bilinear transform of a first order analog filter.
where a is real and |a| < 1 Note: Not normalized
Constructor & Destructor Documentation
|
Constructor reading coefficient from a file.
|
Member Function Documentation
template<class Numeric> |
Numeric SPUC::iir_1st< Numeric >::clock |
( |
Numeric |
input |
) |
[inline] |
|
|
Input new sample and calculate output.
|
template<class Numeric> |
void SPUC::iir_1st< Numeric >::print |
( |
void |
|
) |
[inline] |
|
template<class Numeric> |
void SPUC::iir_1st< Numeric >::reset |
( |
void |
|
) |
[inline] |
|
template<class Numeric> |
void SPUC::iir_1st< Numeric >::set_coeff |
( |
double |
A |
) |
[inline] |
|
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Fri Sep 16 11:08:55 2005 for spuc by
1.4.4