Integrator#
- class brainpy.dyn.Integrator(size, keep_size=False, sharding=None, name=None, mode=None, tau=10.0, x_initializer=ZeroInit, method='exp_auto', init_var=True)[source]#
Integrator Model.
This class implements an integrator model, in which its dynamics is given by:
\[\tau \frac{dx}{dt} = - x(t) + I(t)\]where \(x\) is the integrator value, and \(\tau\) is the time constant.
- Parameters:
tau (
Union[float,TypeVar(ArrayType,Array,Variable,TrainVar,Array,ndarray),Callable]) – Membrane time constant.method (
str) – The numerical integration method. Default “exp_auto”.x_initializer (
Union[Callable,TypeVar(ArrayType,Array,Variable,TrainVar,Array,ndarray)]) – The initializer of \(x\).size (
Union[int,Sequence[int]]) – The neuronal population size.keep_size (
bool) – Keep the neuron group size.