![]() |
Controlpp
|
#include <controlpp/TransferFunction.hpp>
Public Types | |
| using | value_type = T |
| using | num_type = Polynom< T, NumOrder > |
| using | den_type = Polynom< T, DenOrder > |
| using | num_vector_type = typename num_type::vector_type |
| using | den_vector_type = typename den_type::vector_type |
Public Member Functions | |
| constexpr | TransferFunction ()=default |
| constexpr | TransferFunction (const TransferFunction &)=default |
| constexpr TransferFunction & | operator= (const TransferFunction &)=default |
| template<int NumOrder2, int DenOrder2> requires (((NumOrder2 < NumOrder) || (DenOrder2 < DenOrder)) && (NumOrder2 <= NumOrder) && (DenOrder2 <= DenOrder)) | |
| TransferFunction (const TransferFunction< T, NumOrder2, DenOrder2 > &other) | |
| template<int NumOrder2, int DenOrder2> requires (((NumOrder2 < NumOrder) || (DenOrder2 < DenOrder)) && (NumOrder2 <= NumOrder) && (DenOrder2 <= DenOrder)) | |
| TransferFunction & | operator= (const TransferFunction< T, NumOrder2, DenOrder2 > &other) |
| constexpr | TransferFunction (const Polynom< T, NumOrder > &num, const Polynom< T, DenOrder > &den) |
| constexpr | TransferFunction (const num_vector_type &num, const den_vector_type &den) |
| constexpr | TransferFunction (const T(&num)[NumOrder+1], const T(&den)[DenOrder+1]) |
| constexpr Polynom< T, NumOrder > & | num () |
| returns a reference to the numerator | |
| constexpr const Polynom< T, NumOrder > & | num () const |
| returns a reference to the numerator | |
| constexpr T & | num (size_t i) |
| Returns the parameter of the numerator polynomial at the index/position i. | |
| constexpr const T & | num (size_t i) const |
| Returns the parameter of the numerator polynomial at the index/position i. | |
| constexpr Polynom< T, DenOrder > & | den () |
| returns a reference to the denominator | |
| constexpr const Polynom< T, DenOrder > & | den () const |
| returns a reference to the denominator | |
| constexpr T & | den (size_t i) |
| Returns the parameter of the denominator polynomial at the index/position i. | |
| constexpr const T & | den (size_t i) const |
| Returns the parameter of the denominator polynomial at the index/position i. | |
| constexpr T | eval (const T &x) const |
Evaluates the rational polynomial at x | |
| template<int M> | |
| constexpr Eigen::Vector< T, M > | eval (const Eigen::Vector< T, M > &x_vec) const |
| Evaluates the rational polynomial elementwise at every element of the input vector. | |
| constexpr std::complex< T > | eval (const std::complex< T > &x) const |
Evaluates the rational polynomial at a complex x | |
| template<int M> | |
| constexpr Eigen::Vector< std::complex< T >, M > | eval (const Eigen::Vector< std::complex< T >, M > &x_vec) const |
| Evaluates the rational polynomial elementwise at every complex element of the input vector. | |
| constexpr std::complex< T > | eval_frequency (const T &frequency) const |
| Evaluates the transfer function at the given frequency (rad/s) | |
| constexpr std::complex< T > | eval_frequency_Hz (const T &frequency) const |
| Evaluates the transfer function at the given frequency (Hz) | |
| template<int M> | |
| constexpr Eigen::Vector< std::complex< T >, M > | eval_frequencies (const Eigen::Vector< T, M > &frequencies) const |
| Evaluates the transfer function at the given frequencies (rad/s) | |
| template<int M> | |
| constexpr Eigen::Vector< std::complex< T >, M > | eval_frequencies_hz (const Eigen::Vector< T, M > &frequencies) const |
| Evaluates the transfer function at the given frequencies (Hz) | |
| void | print (std::ostream &stream, std::string_view var="x") const |
| void | print (std::ostream &stream, std::function< std::string(int i)> var) const |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const TransferFunction &rpoly) |
| using controlpp::TransferFunction< T, NumOrder, DenOrder >::den_type = Polynom<T, DenOrder> |
| using controlpp::TransferFunction< T, NumOrder, DenOrder >::den_vector_type = typename den_type::vector_type |
| using controlpp::TransferFunction< T, NumOrder, DenOrder >::num_type = Polynom<T, NumOrder> |
| using controlpp::TransferFunction< T, NumOrder, DenOrder >::num_vector_type = typename num_type::vector_type |
| using controlpp::TransferFunction< T, NumOrder, DenOrder >::value_type = T |
|
constexprdefault |
|
constexprdefault |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
returns a reference to the denominator
|
inlineconstexpr |
returns a reference to the denominator
|
inlineconstexpr |
Returns the parameter of the denominator polynomial at the index/position i.
| i | The index at which to return the corresponding parameter |
|
inlineconstexpr |
Returns the parameter of the denominator polynomial at the index/position i.
| i | The index at which to return the corresponding parameter |
|
inlineconstexpr |
Evaluates the rational polynomial elementwise at every complex element of the input vector.
| x_vec | The complex parameter vector at which the rational polynomial is being evaluated at |
|
inlineconstexpr |
Evaluates the rational polynomial elementwise at every element of the input vector.
| x_vec | The parameter vector at which the rational polynomial is being evaluated at |
|
inlineconstexpr |
Evaluates the rational polynomial at a complex x
| x | The complex variable used to evaluate the polynomial |
|
inlineconstexpr |
Evaluates the rational polynomial at x
| x | The variable used to evaluate the polynomial |
|
inlineconstexpr |
Evaluates the transfer function at the given frequencies (rad/s)
| frequencies | The frequencies (rad/s) at which to evaluate the transfer function at |
|
inlineconstexpr |
Evaluates the transfer function at the given frequencies (Hz)
| frequencies | The frequencies (Hz) at which to evaluate the transfer function at |
|
inlineconstexpr |
Evaluates the transfer function at the given frequency (rad/s)
equivalent to calling .eval(std::complex<T>(0, f)).
| frequency | The frequency (in radiants per second) at which to evaluate the transfer function at |
|
inlineconstexpr |
Evaluates the transfer function at the given frequency (Hz)
| frequency | The frequency (Hz) at which to evaluate the transfer function at |
|
inlineconstexpr |
returns a reference to the numerator
|
inlineconstexpr |
returns a reference to the numerator
|
inlineconstexpr |
Returns the parameter of the numerator polynomial at the index/position i.
| i | The index at which to return the corresponding parameter |
|
inlineconstexpr |
Returns the parameter of the numerator polynomial at the index/position i.
| i | The index at which to return the corresponding parameter |
|
constexprdefault |
|
inline |
|
inline |
|
inline |
|
friend |