harold.simulate_impulse_response(sys, t=None)

Compute the linear model response to an Dirac delta pulse (or all-zeros array except the first sample being 1/dt at each channel) sampled at given time instances.

If the time array is omitted then a time sequence is generated based on the poles of the model.

  • sys ({State, Transfer}) – The system model to be simulated
  • t (array_like) – The real-valued sequence to be used for the evolution of the system. The values should be equally spaced otherwise an error is raised. For discrete time models increments different than the sampling period also raises an error. On the other hand for discrete models this can be omitted and a time sequence will be generated automatically.

  • yout (ndarray) – The resulting response array. The array is 1D if sys is SISO and has p columns if sys has p outputs. If there are also m inputs the array is 3D array with the shape (<num of samples>, p, m)
  • tout (ndarray) – The time sequence used in the simulation. If the parameter t is not None then a copy of t is given.