snFIRFilter implements a FIR filter that safes its own state for processing of consecutive data blocks.
More...
#include <snFIRFilter.h>
snFIRFilter implements a FIR filter that safes its own state for processing of consecutive data blocks.
The coefficients can be altered after every filter step without erasing the filter state. The routine uses intrinsic SSE instruction if USE_SSE is defined.
snFIRFilter::snFIRFilter |
( |
double * |
pdataIn, |
|
|
double * |
pdataOut, |
|
|
int |
pdata_len, |
|
|
double * |
pcoeff, |
|
|
int |
pfilter_order |
|
) |
| |
implements a FIR filter
- Parameters
-
pdataIn | pointer to input array |
pdataOut | pointer to output array |
pn | number of input samples |
pcoeff | pointer to coefficients array |
pm | number of coefficients |
snFIRFilter::~snFIRFilter |
( |
| ) |
|
double* coeff snFIRFilter::__attribute__ |
( |
(aligned(16)) |
| ) |
|
|
private |
double* x snFIRFilter::__attribute__ |
( |
(aligned(16)) |
| ) |
|
|
private |
double* y snFIRFilter::__attribute__ |
( |
(aligned(16)) |
| ) |
|
|
private |
double* c snFIRFilter::__attribute__ |
( |
(aligned(16)) |
| ) |
|
|
private |
double* x2 snFIRFilter::__attribute__ |
( |
(aligned(16)) |
| ) |
|
|
private |
double zerot [2] snFIRFilter::__attribute__ |
( |
(aligned(16)) |
| ) |
|
|
private |
double res [2] snFIRFilter::__attribute__ |
( |
(aligned(16)) |
| ) |
|
|
private |
std::vector<double> snFIRFilter::get_state |
( |
| ) |
|
|
inline |
void snFIRFilter::run |
( |
| ) |
|
void snFIRFilter::set_state |
( |
std::vector< double > |
s | ) |
|
|
inline |
double* snFIRFilter::dataIn |
|
private |
double* snFIRFilter::dataOut |
|
private |
int snFIRFilter::filter_order |
|
private |
double* snFIRFilter::state |
|
private |
The documentation for this class was generated from the following files: