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(xi) = \frac{x_i - x{i-s}}{dt * s} \)

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

Parameters

  • Initial Condition (default = 0): Initial value to output prior to the first derivative computation.
  • Max Samples (default = 3): Number of samples to compute the derivative over.

Examples

Derivative Example