quantal_stp_synapse#
- class brainpy.state.quantal_stp_synapse(*args, **kwargs)#
Quantal (binomial) short-term-plasticity synapse spec.
- Parameters:
weight (
ArrayLikeorQuantity, optional) – Per-edge, per-site weight (pA; the maximum delivered amplitude isn * weight). Default1.0pA.delay (
Quantity, optional) – Homogeneous axonal delay (> 0). Default1.0 ms.receptor_type (
int, optional) – Postsynaptic receptor port (>= 0). Default0.U (
float, optional) – Baseline release probability, in[0, 1]. Default0.5.u (
float, optional) – Initial release probability, in[0, 1]. Defaults toU.n (
int, optional) – Number of release sites (static). Default1.a (
int, optional) – Initial number of available sites. Defaults ton.tau_rec (
Quantity, optional) – Recovery constant (> 0). Default800.0 ms.tau_fac (
Quantity, optional) – Facilitation constant (>= 0). Default0.0 ms.
Notes
t_lastspikeinitialises to-1.0(first spike skips decay/recovery). Facilitation uses atau_fac < 1e-10threshold (NOT exact equality, unliketsodyks2_synapse). The delivered amplitude isn_rel * weightwith no/nnormalisation, andais not hard-clamped (the dynamics keep it in[0, n]). Recovery and release usejax.random.binomial(), so the stream differs from NEST — compare distributionally.References
Examples
>>> from brainpy.state import quantal_stp_synapse >>> s = quantal_stp_synapse() >>> s.stochastic True >>> s.n 1 >>> s.edge_state_init()['a'] 1.0