APM:Libraries
Public Member Functions | Private Attributes | List of all members
NotchFilter< T > Class Template Reference

#include <NotchFilter.h>

Collaboration diagram for NotchFilter< T >:
[legend]

Public Member Functions

void init (float sample_freq_hz, float center_freq_hz, float bandwidth_hz, float attenuation_dB)
 
apply (const T &sample)
 

Private Attributes

bool initialised
 
float b0
 
float b1
 
float b2
 
float a1
 
float a2
 
float a0_inv
 
ntchsig
 
ntchsig1
 
ntchsig2
 
signal2
 
signal1
 

Detailed Description

template<class T>
class NotchFilter< T >

Definition at line 30 of file NotchFilter.h.

Member Function Documentation

◆ apply()

template<class T>
T NotchFilter< T >::apply ( const T &  sample)

Definition at line 42 of file NotchFilter.cpp.

◆ init()

template<class T >
void NotchFilter< T >::init ( float  sample_freq_hz,
float  center_freq_hz,
float  bandwidth_hz,
float  attenuation_dB 
)

Definition at line 22 of file NotchFilter.cpp.

Member Data Documentation

◆ a0_inv

template<class T>
float NotchFilter< T >::a0_inv
private

Definition at line 38 of file NotchFilter.h.

◆ a1

template<class T>
float NotchFilter< T >::a1
private

Definition at line 38 of file NotchFilter.h.

◆ a2

template<class T>
float NotchFilter< T >::a2
private

Definition at line 38 of file NotchFilter.h.

◆ b0

template<class T>
float NotchFilter< T >::b0
private

Definition at line 38 of file NotchFilter.h.

◆ b1

template<class T>
float NotchFilter< T >::b1
private

Definition at line 38 of file NotchFilter.h.

◆ b2

template<class T>
float NotchFilter< T >::b2
private

Definition at line 38 of file NotchFilter.h.

◆ initialised

template<class T>
bool NotchFilter< T >::initialised
private

Definition at line 37 of file NotchFilter.h.

◆ ntchsig

template<class T>
T NotchFilter< T >::ntchsig
private

Definition at line 39 of file NotchFilter.h.

◆ ntchsig1

template<class T>
T NotchFilter< T >::ntchsig1
private

Definition at line 39 of file NotchFilter.h.

◆ ntchsig2

template<class T>
T NotchFilter< T >::ntchsig2
private

Definition at line 39 of file NotchFilter.h.

◆ signal1

template<class T>
T NotchFilter< T >::signal1
private

Definition at line 39 of file NotchFilter.h.

◆ signal2

template<class T>
T NotchFilter< T >::signal2
private

Definition at line 39 of file NotchFilter.h.


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