brainpy.math.surrogate.SquarewaveFourierSeries

brainpy.math.surrogate.SquarewaveFourierSeries#

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

Judge spiking state with a squarewave fourier series.

__init__(n=2, t_period=8.0)[source]#

Methods

__init__([n, t_period])

surrogate_fun(x)

The surrogate function.

surrogate_grad(x)

The gradient function of the surrogate function.