PyFibers: An open-source NEURON-Python package to simulate responses of model nerve fibers to electrical stimulation
Fig 4
Three example threshold searches superimposed on the same axes—one with both initial bounds too low, one with both too high, and one with initial bounds straddling the threshold.
For the cases with the initial bounds both too low or too high, a bounds search (white triangles) is first conducted to identify bounds that straddle the threshold, and then the bisection search (black triangles) is initiated. In the case where the initial bounds straddle the threshold, a bisection search begins immediately. The bisection search continues until the difference between the upper and lower bounds is less than the specified search tolerance, and threshold is then considered as the upper bound amplitude.