Classes for recursive evaluation of LTI systems defined by transfer functions.
More...
|
template<size_t order> |
using | qlibs::continuousStates |
| Type to specify continuous states.
|
|
template<size_t order> |
using | qlibs::discreteStates |
| Type to specify discrete states.
|
|
template<size_t delay> |
using | qlibs::discreteDelay |
| Delays the input by a specified amount of samples. You can use this class to simulate a discrete time delay.
|
|
Classes for recursive evaluation of LTI systems defined by transfer functions.
For a brief description of this module, please read Recursive LTI Systems Evaluation by transfer functions.
◆ continuousStates
Type to specify continuous states.
◆ discreteDelay
Delays the input by a specified amount of samples. You can use this class to simulate a discrete time delay.
- Template Parameters
-
Delay | The number of samples to delay the signal. |
◆ discreteStates
Type to specify discrete states.
◆ ltisysType
All the possible natures of a LTI system.
Enumerator |
---|
LTISYS_TYPE_UNKNOWN | Unknown type of system
|
LTISYS_TYPE_CONTINUOUS | Continuous-time system
|
LTISYS_TYPE_DISCRETE | Discrete-time controller
|
◆ delayFromTime() [1/2]
size_t qlibs::delayFromTime |
( |
const real_t | Time, |
|
|
const real_t | dt ) |
|
constexpr |
Computes the number of discrete delays required for a specified amount of time using a defined time-step.
- See also
- transportDelay
- Parameters
-
[in] | Time | The amount of time to delay |
[in] | dt | The time step |
- Returns
- The number of discrete delays required to delay Time seconds using the time step dt
◆ delayFromTime() [2/2]
Computes the number of discrete delays required for a specified amount of time using a defined time-step.
- See also
- transportDelay
- Parameters
-
[in] | Time | The amount of time to delay |
[in] | dt | The time step |
- Returns
- The number of discrete delays required to delay Time seconds using the time step dt
◆ operator""_td()
timeDelay qlibs::operator""_td |
( |
long double | v | ) |
|
|
constexpr |
Literal for creating a timeDelay from a floating-point value.
Example:
- Parameters
-
v | The delay value in seconds. |
- Returns
- A timeDelay instance.
◆ operator,()
Computes the delay in discrete steps using the comma operator.
This allows concise syntax like:
constexpr real_t dt = 0.01_re;
size_t steps = 0.2_td, dt;
float real_t
A type to instantiate a real variable double-precision of 64-bits IEEE 754.
Definition qlibs_types.hpp:43
- Parameters
-
- Returns
- The delay in steps.