3#include <dsplib/array.h>
4#include <dsplib/keywords.h>
5#include <dsplib/math.h>
7#include <dsplib/ifft.h>
26 this->process(inplace(r));
32 auto x = concatenate(_d, s);
33 FirFilter::conv(x, _h);
34 s.assign(x.slice(0, s.size()));
35 const int nd = _d.size();
36 const int nx = x.size();
37 _d.slice(0, nd) = x.slice((nx - nd), nx);
50 return this->process(x);
82 return this->process(x);
85 [[nodiscard]]
int block_size()
const;
88 std::shared_ptr<FftFilterImpl<T>> d_;
105arr_real fir1(
int n, real_t wn, FilterType ftype = FilterType::Low);
109arr_real fir1(
int n, real_t wn1, real_t wn2, FilterType ftype = FilterType::Bandpass);
110arr_real fir1(
int n, real_t wn1, real_t wn2, FilterType ftype,
const arr_real& win);
FFT-based FIR filtering using overlap-add method.
Definition fir.h:75
FIR filter class.
Definition fir.h:17
base dsplib array type
Definition array.h:25