HyperbolicTangentCoupling#
- class brainmass.HyperbolicTangentCoupling(x, conn, k=0.5, scale=2.0)#
Hyperbolic-tangent coupling (TVB
HyperbolicTangent, post-nonlinearity).Applies a symmetric saturating nonlinearity after the network sum:
\[ c_i = k \, \tanh\!\left(\mathrm{scale} \sum_j g_{ij} x_{D_{ij}}\right) \]where \(g_{ij}\) is the connection strength.
kis the global coupling strength (TVBG;G ≡ k) and the output saturates to \(\pm k\).- Parameters:
x (
PrefetchDelayAt|PrefetchDelay|Prefetch|Callable) – The (optionally delayed) source state, shaped(..., N_out, N_in).conn (
Callable|Array|ndarray|bool|number|bool|int|float|complex|Quantity|Param) – Connection matrix(N_out, N_in)or square-flattened(N_out * N_in,).k (
Callable|Array|ndarray|bool|number|bool|int|float|complex|Quantity|Param) – Global coupling strength (TVBG).scale (
Callable|Array|ndarray|bool|number|bool|int|float|complex|Quantity|Param) – Scaling of the network sum before thetanh.
- Return type:
Any
See also
SigmoidalCouplingasymmetric (logistic) post-nonlinearity.
- __init__(x, conn, k=0.5, scale=2.0)[source]#
- Parameters:
x (PrefetchDelayAt | PrefetchDelay | Prefetch | Callable)
conn (Callable | Array | ndarray | bool | number | bool | int | float | complex | Quantity | Param)
k (Callable | Array | ndarray | bool | number | bool | int | float | complex | Quantity | Param)
scale (Callable | Array | ndarray | bool | number | bool | int | float | complex | Quantity | Param)