Arduino Filters master
Filter library for Arduino
Public Member Functions | Public Attributes | List of all members
TransferFunction< NB, NA, T > Struct Template Reference

#include <Filters/TransferFunction.hpp>

Detailed Description

template<size_t NB, size_t NA = NB, class T = float>
struct TransferFunction< NB, NA, T >

Class for transfer function coefficients.

\[ H(z) = \frac{b_0 + b_1 z^{-1} + \ldots + b_{N_b} z ^{-N_b}} {a_0 + a_1 z^{-1} + \ldots + a_{N_b} z ^{-N_a}} \]

Definition at line 17 of file TransferFunction.hpp.

+ Collaboration diagram for TransferFunction< NB, NA, T >:

Public Member Functions

 TransferFunction ()=default
 
 TransferFunction (const AH::Array< T, NB > &b, const AH::Array< T, NA > &a)
 Construct a new Transfer Function object. More...
 

Public Attributes

AH::Array< T, NB > b = {{}}
 
AH::Array< T, NA > a = {{}}
 

Constructor & Destructor Documentation

◆ TransferFunction() [1/2]

TransferFunction ( )
default

◆ TransferFunction() [2/2]

TransferFunction ( const AH::Array< T, NB > &  b,
const AH::Array< T, NA > &  a 
)
inline

Construct a new Transfer Function object.

Definition at line 21 of file TransferFunction.hpp.

Member Data Documentation

◆ b

AH::Array<T, NB> b = {{}}

Definition at line 24 of file TransferFunction.hpp.

◆ a

AH::Array<T, NA> a = {{}}

Definition at line 25 of file TransferFunction.hpp.


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