nengolib.Lowpass

nengolib.synapses.Lowpass(tau)[source]

A first-order lowpass: 1/(tau*s + 1).

Parameters:
tau : float

Time-constant of exponential decay.

Returns:
sys : LinearSystem

First-order lowpass.

See also

nengo.Lowpass, s

Examples

>>> from nengolib import Lowpass
>>> import matplotlib.pyplot as plt
>>> taus = np.linspace(.01, .05, 5)
>>> for tau in taus:
>>>     sys = Lowpass(tau)
>>>     plt.plot(sys.ntrange(100), sys.impulse(100),
>>>              label=r"$\tau=%s$" % tau)
>>> plt.xlabel("Time (s)")
>>> plt.legend()
>>> plt.show()

(Source code)

_images/nengolib-synapses-Lowpass-1.png