DER – Derivation, filtering and prediction from the last n+1 samples

Block SymbolLicensing group: STANDARD
PIC

Function Description
The DER block interpolates the last n + 1 samples (n N 1, N is implementation dependent) of the input signal u by a line y= at + b using the least squares method. The starting point of the time axis is set to the current sampling instant.

In case of RUN = on the outputs y and z are computed from the obtained parameters a and b of the linear interpolation as follows:

Derivation: y = a Filtering: z = b,fortp = 0 Prediction: z = atp + b,fortp > 0 Retrodiction: z = atp + b,fortp < 0

In case of RUN = off or n+ 1 samples of the input signal are not yet available (RDY = off), the outputs are set to y = 0, z= u.

This block propagates the signal quality. More information can be found in the 1.4 section.

Input

u

Analog output of the block

Double (F64)

RUN

Enable execution

Bool

off ..

Tracking

on ...

Filtering

tp

Time instant for prediction/filtering

Double (F64)

Parameter

n

Number of samples for interpolation   1  10000000 10

Long (I32)

nmax

Allocated size of array   10  10000000 100

Long (I32)

Output

y

Estimate of input signal derivative

Double (F64)

z

Predicted/filtered input signal

Double (F64)

RDY

Outputs valid (ready flag)

Bool

2024 © REX Controls s.r.o., www.rexygen.com