brainpy.math.surrogate.QPseudoSpike

brainpy.math.surrogate.QPseudoSpike#

class brainpy.math.surrogate.QPseudoSpike(alpha=2.0)[source]#

Judge spiking state with the q-PseudoSpike surrogate function.

See also

q_pseudo_spike

__init__(alpha=2.0)[source]#

Methods

__init__([alpha])

surrogate_fun(x)

The surrogate function.

surrogate_grad(x)

The gradient function of the surrogate function.