SquarewaveFourierSeries# class braincore.surrogate.SquarewaveFourierSeries(n=2, t_period=8.0)[source]# Judge spiking state with a squarewave fourier series. See also squarewave_fourier_series surrogate_fun(x)[source]# The surrogate function. surrogate_grad(x)[source]# The gradient function of the surrogate function.