Checkpoint
One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.
Checkpoint. Use a convolution to locate an edge. Write
find_edge(signal) that runs the [1, -1] edge kernel over the signal
and returns the summary for the position with the largest-magnitude
response:
edge at position 2 (response -7)
(largest magnitude = biggest absolute value; on a tie, the earliest).