SPUC
3.0
|
Template Class for Modeling a Finite Impulse Response filter. More...
#include <fir_coeff.h>
Public Member Functions | |
void | settap (long i, Numeric tap) |
Set tap weights. More... | |
Numeric | gettap (long i) |
Numeric | coeff_sum () |
Get sum of coefficients. More... | |
~fir_coeff (void) | |
Constructor. More... | |
fir_coeff (void) | |
Constructor. More... | |
fir_coeff (long n) | |
Constructor. More... | |
void | set_size (long n) |
Set size of Filter. More... | |
long | get_size (void) |
fir_coeff (const char *file) | |
Constructor that gets coefficients from file (requires fir_coeff.cpp) More... | |
int | read_taps (const char *file) |
void | quantize (int bits) |
void | make_hpf () |
void | print (void) |
void | settap (std::vector< Numeric > z) |
float_type | freqz_mag (float_type freq) |
template<> | |
void | print () |
template<> | |
void | print () |
template<> | |
void | print () |
template<> | |
void | print () |
template<> | |
int | read_taps (const char *file) |
template<> | |
int | read_taps (const char *file) |
template<> | |
int | read_taps (const char *file) |
template<> | |
int | read_taps (const char *file) |
Public Attributes | |
std::vector< Numeric > | coeff |
long | num_taps |
Friends | |
template<class N > | |
std::vector< N > | get_taps (fir_coeff< N > x) |
Template Class for Modeling a Finite Impulse Response filter.
Template works for double, long, complex, etc Taps initialized to zeros.
|
inline |
Constructor.
|
inline |
Constructor.
|
inline |
Constructor.
References SPUC::fir_coeff< Numeric >::set_size().
|
inline |
Constructor that gets coefficients from file (requires fir_coeff.cpp)
References SPUC::fir_coeff< Numeric >::read_taps().
|
inline |
Get sum of coefficients.
References SPUC::fir_coeff< Numeric >::num_taps.
|
inline |
References SPUC::cos(), SPUC::magsq(), SPUC::fir_coeff< Numeric >::num_taps, and SPUC::sqrt().
|
inline |
|
inline |
|
inline |
References SPUC::fir_coeff< Numeric >::num_taps.
void SPUC::fir_coeff< float_type >::print | ( | void | ) |
void SPUC::fir_coeff< long >::print | ( | void | ) |
void SPUC::fir_coeff< complex< float_type > >::print | ( | void | ) |
void SPUC::fir_coeff< complex< long > >::print | ( | void | ) |
|
inline |
References SPUC::fir_coeff< Numeric >::num_taps.
Referenced by main(), and SPUC::fir< Numeric, Numeric >::print().
|
inline |
References SPUC::fir_coeff< Numeric >::num_taps.
|
inline |
Referenced by SPUC::fir_coeff< Numeric >::fir_coeff(), and SPUC::fir< Numeric, Numeric >::read_taps().
int SPUC::fir_coeff< complex< long > >::read_taps | ( | const char * | file | ) |
int SPUC::fir_coeff< complex< float_type > >::read_taps | ( | const char * | file | ) |
int SPUC::fir_coeff< long >::read_taps | ( | const char * | file | ) |
int SPUC::fir_coeff< float_type >::read_taps | ( | const char * | file | ) |
|
inline |
Set size of Filter.
Referenced by SPUC::fir_coeff< Numeric >::fir_coeff().
|
inline |
Set tap weights.
Referenced by SPUC::create_remez_fir(), and SPUC::create_remez_lpfir().
|
inline |
References SPUC::fir_coeff< Numeric >::num_taps.
std::vector<Numeric> SPUC::fir_coeff< Numeric >::coeff |
Referenced by SPUC::butterworth_fir(), SPUC::fir< Numeric, Numeric >::fir(), SPUC::gaussian_fir(), SPUC::get_taps(), SPUC::fir< Numeric, Numeric >::print(), SPUC::raised_cosine(), SPUC::fir< Numeric, Numeric >::read_taps(), SPUC::root_raised_cosine(), SPUC::root_raised_cosine_quantized(), and SPUC::fir< Numeric, Numeric >::settaps().
long SPUC::fir_coeff< Numeric >::num_taps |
Referenced by SPUC::butterworth_fir(), SPUC::fir_coeff< Numeric >::coeff_sum(), SPUC::create_remez_fir(), SPUC::create_remez_lpfir(), SPUC::fir< Numeric, Numeric >::fir(), SPUC::fir_coeff< Numeric >::freqz_mag(), SPUC::gaussian_fir(), SPUC::get_taps(), SPUC::fir_coeff< Numeric >::make_hpf(), SPUC::fir_coeff< Numeric >::print(), SPUC::fir_coeff< Numeric >::quantize(), SPUC::raised_cosine(), SPUC::root_raised_cosine(), SPUC::root_raised_cosine_quantized(), and SPUC::fir_coeff< Numeric >::settap().