|
itpp_sci
4
|
Template Class for Modeling a Finite Impulse Response filter.
Template works for double, long, complex, etc
Taps initialized to zeros.
More...
#include <spuc_fir.hpp>
Public Member Functions | |
| ~fir (void) | |
| Destructor. More... | |
| fir (void) | |
| Constructor. More... | |
| fir (int n) | |
| Constructor. More... | |
| void | set_size (int n) |
| Set size of Filter. More... | |
| void | set_taps (int i, Numeric tap) |
| Set tap weights - single. More... | |
| void | set_taps (Vector< Numeric > v) |
| Set tap weights - vector. More... | |
| void | reset () |
| Reset. More... | |
| Numeric | coeff_sum () |
| Get sum of coefficients. More... | |
| int | get_size (void) |
| Get fir size. More... | |
| Vector< Numeric > | get_taps (void) |
| Get taps as vector. More... | |
| Vector< Numeric > | get_input (void) |
| Get input as vector. More... | |
| Numeric | out () |
| Get current output. More... | |
| Numeric | check (int i) |
| Clock in new sample & compute current output. More... | |
| Numeric | clock (Numeric in) |
| Update filter by inputting 1 sample and returning convolved output sample. More... | |
| Numeric | update (Numeric in) |
| Update filter by inputting 1 sample and returning convolved output sample. More... | |
Public Attributes | |
| int | num_taps |
| size of filter - public(?) More... | |
| Numeric * | coeff |
| pointer to coeff created on the heap - public(?) More... | |
| Numeric * | z |
| pointer to state created on the heap - public(?) More... | |
| Numeric | output |
| output - public(?) More... | |
Template Class for Modeling a Finite Impulse Response filter.
Template works for double, long, complex, etc
Taps initialized to zeros.
|
inline |
Clock in new sample & compute current output.
|
inline |
Update filter by inputting 1 sample and returning convolved output sample.
|
inline |
Get sum of coefficients.
Get input as vector.
|
inline |
Get fir size.
Get taps as vector.
|
inline |
Get current output.
|
inline |
Reset.
|
inline |
Set size of Filter.
|
inline |
Set tap weights - single.
Set tap weights - vector.
|
inline |
Update filter by inputting 1 sample and returning convolved output sample.
| Numeric* SPUC::fir< Numeric >::coeff |
pointer to coeff created on the heap - public(?)
| int SPUC::fir< Numeric >::num_taps |
size of filter - public(?)
| Numeric SPUC::fir< Numeric >::output |
output - public(?)
| Numeric* SPUC::fir< Numeric >::z |
pointer to state created on the heap - public(?)
1.8.9.1