Arduino Filters master
Filter library for Arduino
Public Member Functions | Private Attributes | List of all members
SOSFilter< T, N, Implementation > Class Template Reference

#include <Filters/SOSFilter.hpp>

Detailed Description

template<class T, size_t N, class Implementation = BiQuadFilterDF1<T>>
class SOSFilter< T, N, Implementation >

Second Order Sections filter.

Higher cost than direct implementation, but better numerical stability.

Template Parameters
TThe type of the signals and filter coefficients.
NThe number of sections.

Definition at line 22 of file SOSFilter.hpp.

+ Collaboration diagram for SOSFilter< T, N, Implementation >:

Public Member Functions

 SOSFilter (const SOSCoefficients< T, N > &sectionCoefficients)
 Constructor. More...
 
operator() (T input)
 Update the internal state with the new input \( x[n] \) and return the new output \( y[n] \). More...
 

Private Attributes

AH::Array< Implementation, N > sections
 

Constructor & Destructor Documentation

◆ SOSFilter()

SOSFilter ( const SOSCoefficients< T, N > &  sectionCoefficients)
inline

Constructor.

Definition at line 25 of file SOSFilter.hpp.

Member Function Documentation

◆ operator()()

T operator() ( input)
inline

Update the internal state with the new input \( x[n] \) and return the new output \( y[n] \).

Parameters
inputThe new input \( x[n] \).
Returns
The new output \( y[n] \).

Definition at line 36 of file SOSFilter.hpp.

Member Data Documentation

◆ sections

AH::Array<Implementation, N> sections
private

Definition at line 43 of file SOSFilter.hpp.


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