brainpy.math.surrogate.MultiGaussianGrad

brainpy.math.surrogate.MultiGaussianGrad#

class brainpy.math.surrogate.MultiGaussianGrad(h=0.15, s=6.0, sigma=0.5, scale=0.5)[source]#

Judge spiking state with the multi-Gaussian gradient function.

__init__(h=0.15, s=6.0, sigma=0.5, scale=0.5)[source]#

Methods

__init__([h, s, sigma, scale])

surrogate_fun(x)

The surrogate function.

surrogate_grad(x)

The gradient function of the surrogate function.