Documentation
Tools for embedded systems
Loading...
Searching...
No Matches
qlibs::discreteTF< NB, NA > Struct Template Reference

Discrete transfer function for easy LTI system definition. More...

#include <ltisys.hpp>

Public Member Functions

 discreteTF (const real_t(&numerator)[NB], const real_t(&denominator)[NA])
 Constructor for the discreteTF class.
 

Detailed Description

template<size_t NB, size_t NA>
struct qlibs::discreteTF< NB, NA >

Discrete transfer function for easy LTI system definition.

Note
Initial conditions are zero by default.
Template Parameters
NBOrder of the numerator of the transfer function
NAOrder of the denominator of the transfer function

Constructor & Destructor Documentation

◆ discreteTF()

template<size_t NB, size_t NA>
qlibs::discreteTF< NB, NA >::discreteTF ( const real_t(&) numerator[NB],
const real_t(&) denominator[NA] )
inline

Constructor for the discreteTF class.

Parameters
[in]numeratorAn array of size <NB> with the coefficients of the numerator in descending powers of z.
[in]denominatorAn array of size <NA> with the coefficients of the denominator in descending powers of z.