Mercurial > hg > qm-dsp
diff dsp/signalconditioning/FiltFilt.h @ 417:fa851e147e3f
Faster filter implementation with explicit FIR support
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 07 Oct 2015 10:36:09 +0100 |
parents | f5b5f64835b9 |
children | 701233f8ed41 |
line wrap: on
line diff
--- a/dsp/signalconditioning/FiltFilt.h Wed Oct 07 10:07:30 2015 +0100 +++ b/dsp/signalconditioning/FiltFilt.h Wed Oct 07 10:36:09 2015 +0100 @@ -20,30 +20,21 @@ /** * Zero-phase digital filter, implemented by processing the data - * through a filter specified by the given FilterConfig structure (see + * through a filter specified by the given filter parameters (see * Filter) and then processing it again in reverse. */ class FiltFilt { public: - FiltFilt( FilterConfig Config ); + FiltFilt(Filter::Parameters); virtual ~FiltFilt(); void reset(); void process( double* src, double* dst, unsigned int length ); private: - void initialise( FilterConfig Config ); - void deInitialise(); - - unsigned int m_ord; - - Filter* m_filter; - - double* m_filtScratchIn; - double* m_filtScratchOut; - - FilterConfig m_filterConfig; + Filter m_filter; + int m_ord; }; #endif