#include <fir.h>
Inheritance diagram for SPUC::fir< Numeric >:


Public Member Functions | |
| void | settap (long i, Numeric tap) |
| Set tap weights. | |
| void | reset () |
| Reset. | |
| Numeric | coeff_sum () |
| Get sum of coefficients. | |
| Numeric | out () |
| Get current output. | |
| Numeric | check (long i) |
| Clock in new sample & compute current output. | |
| ~fir (void) | |
| fir (void) | |
| Constructor. | |
| fir (long n) | |
| Constructor. | |
| void | set_size (long n) |
| Set size of Filter. | |
| long | get_size (void) |
| fir (const char *file) | |
| Constructor that gets coefficients from file (requires fir.cpp). | |
| Numeric | clock (Numeric in) |
| Update filter by inputting 1 sample and returning convolved output sample. | |
| Numeric | update (Numeric in) |
| Numeric | iir (Numeric in) |
| int | read_taps (const char *file) |
| int | read_complex_taps (const char *file) |
| void | print (void) |
| void | settap (Vector< Numeric > z) |
| template<> | |
| int | read_taps (const char *file) |
Public Attributes | |
| long | num_taps |
| Numeric * | coeff |
| Numeric * | z |
| Numeric | output |
Friends | |
| template<class N> | |
| Vector< N > | Vector_taps (fir< N > x) |
| template<class N> | |
| Vector< N > | Vector_input (fir< N > y) |
Template works for double, long, complex, etc Taps initialized to zeros.
|
||||||||||
|
|
|
||||||||||
|
Constructor.
|
|
||||||||||
|
Constructor.
|
|
||||||||||
|
Constructor that gets coefficients from file (requires fir.cpp).
|
|
||||||||||
|
Clock in new sample & compute current output.
|
|
||||||||||
|
Update filter by inputting 1 sample and returning convolved output sample.
|
|
|||||||||
|
Get sum of coefficients.
Reimplemented in SPUC::fir_interp< Numeric >, and SPUC::fir_interp< complex< double > >. |
|
||||||||||
|
|
|
||||||||||
|
|
|
|||||||||
|
Get current output.
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
Reset.
Reimplemented in SPUC::fir_adapt< Numeric >, SPUC::fir_interp< Numeric >, SPUC::fir_multi_interp< Numeric >, SPUC::fir_adapt< complex< double > >, and SPUC::fir_interp< complex< double > >. |
|
||||||||||
|
Set size of Filter.
|
|
||||||||||
|
|
|
||||||||||||||||
|
Set tap weights.
|
|
||||||||||
|
Reimplemented in SPUC::fir_sparse_coef< Numeric >. |
|
||||||||||||||
|
|
|
||||||||||||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
1.4.4