qm-dsp  1.8
FiltFilt Class Reference

Zero-phase digital filter, implemented by processing the data through a filter specified by the given FilterConfig structure (see Filter) and then processing it again in reverse. More...

#include <FiltFilt.h>

Public Member Functions

 FiltFilt (FilterConfig Config)
 
virtual ~FiltFilt ()
 
void reset ()
 
void process (double *src, double *dst, unsigned int length)
 

Private Member Functions

void initialise (FilterConfig Config)
 
void deInitialise ()
 

Private Attributes

unsigned int m_ord
 
Filterm_filter
 
double * m_filtScratchIn
 
double * m_filtScratchOut
 
FilterConfig m_filterConfig
 

Detailed Description

Zero-phase digital filter, implemented by processing the data through a filter specified by the given FilterConfig structure (see Filter) and then processing it again in reverse.

Definition at line 26 of file FiltFilt.h.

Constructor & Destructor Documentation

◆ FiltFilt()

FiltFilt::FiltFilt ( FilterConfig  Config)

Definition at line 22 of file FiltFilt.cpp.

References initialise(), m_filtScratchIn, m_filtScratchOut, m_ord, and NULL.

◆ ~FiltFilt()

FiltFilt::~FiltFilt ( )
virtual

Definition at line 31 of file FiltFilt.cpp.

References deInitialise().

Member Function Documentation

◆ reset()

void FiltFilt::reset ( )

Definition at line 127 of file FiltFilt.cpp.

◆ process()

void FiltFilt::process ( double *  src,
double *  dst,
unsigned int  length 
)

Definition at line 52 of file FiltFilt.cpp.

References m_filter, m_filtScratchIn, m_filtScratchOut, m_ord, and Filter::process().

Referenced by DFProcess::process().

◆ initialise()

void FiltFilt::initialise ( FilterConfig  Config)
private

Definition at line 36 of file FiltFilt.cpp.

References FilterConfig::ACoeffs, FilterConfig::BCoeffs, m_filter, m_filterConfig, m_ord, and FilterConfig::ord.

Referenced by FiltFilt().

◆ deInitialise()

void FiltFilt::deInitialise ( )
private

Definition at line 46 of file FiltFilt.cpp.

References m_filter.

Referenced by ~FiltFilt().

Member Data Documentation

◆ m_ord

unsigned int FiltFilt::m_ord
private

Definition at line 39 of file FiltFilt.h.

Referenced by FiltFilt(), initialise(), and process().

◆ m_filter

Filter* FiltFilt::m_filter
private

Definition at line 41 of file FiltFilt.h.

Referenced by deInitialise(), initialise(), and process().

◆ m_filtScratchIn

double* FiltFilt::m_filtScratchIn
private

Definition at line 43 of file FiltFilt.h.

Referenced by FiltFilt(), and process().

◆ m_filtScratchOut

double* FiltFilt::m_filtScratchOut
private

Definition at line 44 of file FiltFilt.h.

Referenced by FiltFilt(), and process().

◆ m_filterConfig

FilterConfig FiltFilt::m_filterConfig
private

Definition at line 46 of file FiltFilt.h.

Referenced by initialise().


The documentation for this class was generated from the following files: