All problems
Transfer Function Step
Problem
Evaluate one step of a transfer function with a single lagged input: intercept + gain * x_lag.
Return the output value.
Hint
This is the impulse response of a zero-order-plus-lag transfer function.
Test cases
case 1
in: [2,1,0.5]
expected: 2
case 2
in: [0,3,2]
expected: 3
case 3
in: [5,0,1]
expected: 5
case 4
in: [-1,1,1]
expected: 0
Starter codePython
def transfer_function_step(x_lag, intercept, gain):
# Your code here
pass4 test cases · run your code against them in the editor