Derivative Block

Derivative Block

The Derivative block emits the discrete derivative of the input signal.

The derivative is computed from the difference between the input signal now and the input signal Max Samples ago, divided by the time between those two samples:

\( \ f(x_i) = \frac{x_i - x_{i-s}}{dt * s} \)

Since the derivative block requires Max Samples to compute the derivative, it will output 0 for the initial timesteps.

Parameters

  • Max Samples (default = 3): Number of samples to compute the derivative over.

Examples

Derivative Example