qm-dsp
1.8
|
Classes |
Public Member Functions |
Private Member Functions |
Private Attributes |
List of all members
Filter Class Reference
#include <Filter.h>
Classes | |
struct | Parameters |
Public Member Functions | |
Filter (Parameters params) | |
Construct an IIR filter with numerators b and denominators a. More... | |
~Filter () | |
void | reset () |
void | process (const double *const QM_R__ in, double *const QM_R__ out, const int n) |
Filter the input sequence. More... | |
int | getOrder () const |
Private Member Functions | |
Filter (const Filter &) | |
Filter & | operator= (const Filter &) |
Private Attributes | |
int | m_order |
int | m_sz |
std::vector< double > | m_a |
std::vector< double > | m_b |
std::vector< double > | m_bufa |
std::vector< double > | m_bufb |
int | m_offa |
int | m_offb |
int | m_offmax |
bool | m_fir |
Detailed Description
Constructor & Destructor Documentation
Filter::Filter | ( | Parameters | params | ) |
Construct an IIR filter with numerators b and denominators a.
The filter will have order b.size()-1. To make an FIR filter, leave the vector a in the param struct empty. Otherwise, a and b must have the same number of values.
Definition at line 21 of file Filter.cpp.
References Filter::Parameters::a, and Filter::Parameters::b.
Filter::~Filter | ( | ) |
Definition at line 59 of file Filter.cpp.
|
private |
Member Function Documentation
void Filter::reset | ( | ) |
Definition at line 64 of file Filter.cpp.
Referenced by FiltFilt::process().
Filter the input sequence.
- in of length
- n samples, and write the resulting
- n samples into
- out. There must be enough room in
- out for
- n samples to be written.
Definition at line 77 of file Filter.cpp.
Referenced by FiltFilt::process().
|
inline |
Member Data Documentation
|
private |
Definition at line 54 of file Filter.h.
Referenced by getOrder().
The documentation for this class was generated from the following files:
Generated by 1.8.11