DER – Derivation, filtering and prediction from the last n+1 samples
Block SymbolLicensing group: STANDARD
Function Description
The DER block interpolates the last
samples (,
is implementation dependent) of the input signal u by a line
using
the least squares method. The starting point of the time axis is set to the current sampling
instant.
In case of the outputs y and z are computed from the obtained parameters and of the linear interpolation as follows:
In case of or samples of the input signal are not yet available (), the outputs are set to , .
Inputs
u | Analog output of the block | Double (F64) |
RUN | Enable execution | Bool |
|
|
|
tp | Time instant for prediction/filtering ( corresponds with the current sampling instant) | Double (F64) |
Outputs
y | Estimate of input signal derivative | Double (F64) |
z | Predicted/filtered input signal | Double (F64) |
RDY | Ready flag (all samples are available) | Bool |
Parameters
n | Number of samples for interpolation ( samples are used); 1 10000000 10 | Long (I32) |
nmax | Limit for parameter n (used for internal memory allocation) 1 10000000 10 | Long (I32) |
[Previous] [Back to top] [Up] [Next]
2020 © REX Controls s.r.o., www.rexygen.com