braintools.surrogate.squarewave_fourier_series

braintools.surrogate.squarewave_fourier_series#

braintools.surrogate.squarewave_fourier_series(x, n=2, t_period=8.0)[source]#

Spike function with the squarewave Fourier series surrogate gradient.

See the documentation of SquarewaveFourierSeries for details.