When a control system or filter receives a step input, its output traces a transient trajectory before settling at the final value. Quantifying that trajectory with standardised scalar metrics — rise time, settling time, percent overshoot, peak time, and steady-state error — is the primary acceptance test for any closed-loop design. These metrics translate the raw sample sequence into the language of control specifications, allowing automated pass/fail decisions without manual inspection of time-domain plots.
Let
Rise Time
The elapsed time for the response to travel from 10 % to 90 % of steady state:
where
Settling Time
The first time after which the response remains permanently inside the band
Percent Overshoot
For an underdamped second-order system with damping ratio
Peak Time
For a continuous underdamped second-order system with natural frequency
Steady-State Error
where
| Case | Time | Space | Notes |
|---|---|---|---|
| All | Single forward pass; no auxiliary storage |
Each metric requires at most one traversal of the
Consider a 10-sample ramp to
k: 0 1 2 3 4 5 6 7 8 9 10 11 …
y: 0 .1 .2 .3 .4 .5 .6 .7 .8 .9 1 1 …
-
Rise Time:
$k_{10} = 1$ (first sample$\ge 0.1$ ),$k_{90} = 9$ (first sample$\ge 0.9$ ).$T_r = 8,\Delta t$ . -
Settling Time: With
$\delta = 0.02$ , last sample outside the band is$k = 9$ .$T_s = 10,\Delta t$ . -
Percent Overshoot:
$y_{\max} = 1.0 = y_{ss}$ , so$%OS = 0$ . -
Peak Time:
$k_p = 10$ (first occurrence of max).$T_p = 10,\Delta t$ . -
Steady-State Error: Tail mean
$= 1.0$ , reference$= 1.0$ .$e_{ss} = 0$ .
Zero steady state. Division by
Non-monotone ramp. If the response crosses 90 % before 10 % (e.g., DC offset or wrong initial condition),
Oscillatory settling. Settling time is defined as the last time the trajectory leaves the band, not the first time it enters it. Repeated crossings near the boundary extend the metric correctly.
Finite buffer. With a bounded vector of length SettlingTime returns RiseTime returns
Tail-mean length. Using the last
-
Delay Time
$T_d$ : the time to reach 50 % of steady state — obtainable with the same threshold-scan pattern. - Band-relative rise time: using a band other than 10–90 % (e.g., 20–80 %) is a trivial parameter change.
- Multi-channel: applying the scalar functions element-wise to each row of a response matrix generalises to MIMO systems without algorithmic change.
- Automated controller tuning acceptance: verify that a PID or LQR design meets specification (
$T_r < T_{r,\text{spec}}$ ,$%OS < %OS_{\text{spec}}$ , etc.). - Filter characterisation: measure the transient of a step fed through an IIR or FIR filter.
- Hardware-in-the-loop test harnesses: compute metrics directly from sampled actuator responses.
- Statistics (this library): the tail-mean for steady-state error replicates the
Meanfunction on a sub-range. - LinearTimeInvariant: the primary source of step responses whose metrics are evaluated here.
- Filters/active (Kalman, EKF): step-excitation tests use these metrics to validate estimator transient behaviour.
- Controllers: PID and LQR tuning loops iterate until all five metrics satisfy design targets.
- K. J. Åström and R. M. Murray, Feedback Systems: An Introduction for Scientists and Engineers, Princeton University Press, 2008. Chapter 10.
- G. F. Franklin, J. D. Powell, and A. Emami-Naeini, Feedback Control of Dynamic Systems, 8th ed., Pearson, 2019. Chapter 3.
- N. S. Nise, Control Systems Engineering, 8th ed., Wiley, 2019. Chapter 4.