SquarewaveFourierSeries#

class braincore.surrogate.SquarewaveFourierSeries(n=2, t_period=8.0)[source]#

Judge spiking state with a squarewave fourier series.

surrogate_fun(x)[source]#

The surrogate function.

surrogate_grad(x)[source]#

The gradient function of the surrogate function.