Add gradient_compute which compute spike values in the neighborhood of given shifts. This is used to plot the spike values and find their sensitivity to these shifts.