skrf.network.Network.step_response
- Network.step_response(window='hamming', n=None, pad=0, squeeze=True)[source]
Calculate time-domain step response of one-port.
First frequency must be 0 Hz for the transformation to be accurate and the frequency step must be uniform.
Real measurements should be extrapolated to DC and interpolated to uniform frequency spacing.
Y-axis is the reflection coefficient. step_resonse is equal to the cumulative trapezoid integration of the impulse_response function.
- Parameters:
window (string) – FFT windowing function. (Default is ‘hamming’)
n (int) – Length of step response output. If n is not specified, 2m - 1 points are used in low-pass mode where m = len(self) + pad. (default is None).
pad (int) – Number of zeros to add as padding for FFT. Adding more zeros improves accuracy of peaks. (Default is 0)
squeeze (bool) – Squeeze step response to one dimension, if a oneport gets transformed. Has no effect when transforming a multiport. (Default is True)
- Returns:
t (class:np.ndarray) – Time vector
y (class:np.ndarray) – Step response
- Raises:
ValueError – If used with an Network with more than one port
NotImplementedError – If used with non equidistant sampled frequency vector
- Return type: