|
ldas-tools-filters
2.6.6
|
#include <KFIRLP.hh>
Public Member Functions | |
| KFIRLP (const double &t_fc, const double &t_alpha, const double &t_df) | |
| Constructor. More... | |
| void | setFc (double t_fc) |
| set mid-point of transition band More... | |
| double | getFc () const |
| get mid-point of transition band More... | |
| void | setAlpha (double t_alpha) |
| set stop-band depth More... | |
| double | getAlpha () const |
| get stop-band depth More... | |
| void | setDf (const double t_df) |
| set transition band width More... | |
| double | getDf () const |
| get transition band width More... | |
| template<class T > | |
| void | apply (std::valarray< T > &b) |
| get transfer function More... | |
| int | getOrder () const |
| filter order More... | |
| KFIRLP (const double &t_fc, const double &t_alpha, const double &t_df) | |
| Constructor. More... | |
| void | setFc (double t_fc) |
| set mid-point of transition band More... | |
| double | getFc () const |
| get mid-point of transition band More... | |
| void | setAlpha (double t_alpha) |
| set stop-band depth More... | |
| double | getAlpha () const |
| get stop-band depth More... | |
| void | setDf (const double t_df) |
| set transition band width More... | |
| double | getDf () const |
| get transition band width More... | |
| template<class T > | |
| void | apply (std::valarray< T > &b) |
| get transfer function More... | |
| int | getOrder () const |
| filter order More... | |
| KFIRLP (const double &t_fc, const double &t_alpha, const double &t_df) | |
| Constructor. More... | |
| void | setFc (double t_fc) |
| set mid-point of transition band More... | |
| double | getFc () const |
| get mid-point of transition band More... | |
| void | setAlpha (double t_alpha) |
| set stop-band depth More... | |
| double | getAlpha () const |
| get stop-band depth More... | |
| void | setDf (const double t_df) |
| set transition band width More... | |
| double | getDf () const |
| get transition band width More... | |
| template<class T > | |
| void | apply (std::valarray< T > &b) |
| get transfer function More... | |
| int | getOrder () const |
| filter order More... | |
Private Member Functions | |
| double | getBeta () const |
| Kaiser Window beta parameter. More... | |
| double | getBeta () const |
| Kaiser Window beta parameter. More... | |
| double | getBeta () const |
| Kaiser Window beta parameter. More... | |
Private Attributes | |
| double | fc |
| double | df |
| width of the transition zone of the filter More... | |
| double | alpha |
| side lobe height More... | |
| KaiserWindow | kwin |
| Kaiser Window. More... | |
| Filters::KFIRLP::KFIRLP | ( | const double & | t_fc, |
| const double & | t_alpha, | ||
| const double & | t_df | ||
| ) |
Constructor.
| [in] | t_fc | freq. of mid-transition band (Nyquist units) param: const double& t_alpha - is stop-band depth in dB (positive) param: const double& t_df - is transition band width (Nyquist units) |
| domain_error | Thrown if t_fc <= 0 or t_fc >= 1 or the abs(2*df-1) is not less than one |
| invalid_argument | Thrown if t_alpha<=0 |
| Filters::KFIRLP::KFIRLP | ( | const double & | t_fc, |
| const double & | t_alpha, | ||
| const double & | t_df | ||
| ) |
Constructor.
| [in] | t_fc | freq. of mid-transition band (Nyquist units) param: const double& t_alpha - is stop-band depth in dB (positive) param: const double& t_df - is transition band width (Nyquist units) |
| domain_error | Thrown if t_fc <= 0 or t_fc >= 1 or the abs(2*df-1) is not less than one |
| invalid_argument | Thrown if t_alpha<=0 |
| Filters::KFIRLP::KFIRLP | ( | const double & | t_fc, |
| const double & | t_alpha, | ||
| const double & | t_df | ||
| ) |
Constructor.
| [in] | t_fc | freq. of mid-transition band (Nyquist units) param: const double& t_alpha - is stop-band depth in dB (positive) param: const double& t_df - is transition band width (Nyquist units) |
| domain_error | Thrown if t_fc <= 0 or t_fc >= 1 or the abs(2*df-1) is not less than one |
| invalid_argument | Thrown if t_alpha<=0 |
| void Filters::KFIRLP::apply | ( | std::valarray< T > & | b | ) |
get transfer function
| [in] | b | filter coefficients in the container |
| void Filters::KFIRLP::apply | ( | std::valarray< T > & | b | ) |
get transfer function
| [in] | b | filter coefficients in the container |
| void Filters::KFIRLP::apply | ( | std::valarray< T > & | b | ) |
get transfer function
| [in] | b | filter coefficients in the container |
| double Filters::KFIRLP::getAlpha | ( | ) | const |
get stop-band depth
|
inline |
get stop-band depth
| double Filters::KFIRLP::getAlpha | ( | ) | const |
get stop-band depth
|
private |
Kaiser Window beta parameter.
|
private |
Kaiser Window beta parameter.
|
private |
Kaiser Window beta parameter.
| double Filters::KFIRLP::getDf | ( | ) | const |
get transition band width
|
inline |
get transition band width
| double Filters::KFIRLP::getDf | ( | ) | const |
get transition band width
|
inline |
get mid-point of transition band
| double Filters::KFIRLP::getFc | ( | ) | const |
get mid-point of transition band
| double Filters::KFIRLP::getFc | ( | ) | const |
get mid-point of transition band
| int Filters::KFIRLP::getOrder | ( | ) | const |
filter order
| int Filters::KFIRLP::getOrder | ( | ) | const |
filter order
| int Filters::KFIRLP::getOrder | ( | ) | const |
filter order
| void Filters::KFIRLP::setAlpha | ( | double | t_alpha | ) |
set stop-band depth
| [in] | t_alpha | sets the stop-band attenuation |
| invalid_argument | if t_alpha <= 0 |
| void Filters::KFIRLP::setAlpha | ( | double | t_alpha | ) |
set stop-band depth
| [in] | t_alpha | sets the stop-band attenuation |
| invalid_argument | if t_alpha <= 0 |
| void Filters::KFIRLP::setAlpha | ( | double | t_alpha | ) |
set stop-band depth
| [in] | t_alpha | sets the stop-band attenuation |
| invalid_argument | if t_alpha <= 0 |
| void Filters::KFIRLP::setDf | ( | const double | t_df | ) |
set transition band width
| [in] | t_df | is transition band width (Nyquist frequency units) exc: domain_error - if the abs(2*df-1) is not less than one |
| void Filters::KFIRLP::setDf | ( | const double | t_df | ) |
set transition band width
| [in] | t_df | is transition band width (Nyquist frequency units) exc: domain_error - if the abs(2*df-1) is not less than one |
| void Filters::KFIRLP::setDf | ( | const double | t_df | ) |
set transition band width
| [in] | t_df | is transition band width (Nyquist frequency units) exc: domain_error - if the abs(2*df-1) is not less than one |
| void Filters::KFIRLP::setFc | ( | double | t_fc | ) |
set mid-point of transition band
| [in] | double | t_fc freq. of mid-transition band (Nyquist units) |
| domain_error | if t_fc <= 0 or t_fc >= 1 |
| void Filters::KFIRLP::setFc | ( | double | t_fc | ) |
set mid-point of transition band
| [in] | double | t_fc freq. of mid-transition band (Nyquist units) |
| domain_error | if t_fc <= 0 or t_fc >= 1 |
| void Filters::KFIRLP::setFc | ( | double | t_fc | ) |
set mid-point of transition band
| [in] | double | t_fc freq. of mid-transition band (Nyquist units) |
| domain_error | if t_fc <= 0 or t_fc >= 1 |
|
private |
side lobe height
|
private |
width of the transition zone of the filter
|
private |
|
private |
Kaiser Window.
1.8.13