braintools.surrogate.piecewise_quadratic#
- braintools.surrogate.piecewise_quadratic(x, alpha=1.0)[source]#
Spike function with the piecewise quadratic surrogate gradient.
See the documentation of
PiecewiseQuadraticfor details.
Spike function with the piecewise quadratic surrogate gradient.
See the documentation of PiecewiseQuadratic for details.