Jump to content

User:DDadyka/Leaky integrator

From Wikipedia, the free encyclopedia
A graph of a solution to a leaky integrator; the input changes at T=5.

In mathematics, a leaky integrator equation is a specific differential equation, used to describe a component or system that takes the integral of an input, but gradually leaks a small amount of input over time. It appears commonly in hydraulics, electronics, and neuroscience where it can represent either a single neuron or a local population of neurons.[1]

Equation

[edit]

The equation is of the form

where is the input and is the rate of the 'leak' which can be considered as the integrator inverse time constant .

General solution

[edit]
Output signal of an ideal and leaky integrator given a constant input signal.

The equation is a nonhomogeneous first-order linear differential equation. For constant its solution is

where is a constant encoding the initial condition. For zero initial condition

.

For a time much shorter than the filter time constant the linear expansion of the exponential function can be used: so which corresponds to the integration of a constant input signal over time .

For a time significantly greater than time constant the value of the output signal approaches a constant value. Equating the derivative to zero simply yields .

Frequency-domain considerations

[edit]
Comparison of the frequency characteristics of an ideal integrator and a leaky integrator.

The frequency-domain characteristics of a leaky integrator can be determined from its equation. Let the input signal be a complex harmonic signal , the desired solution can be written as , where - the complex transfer function. Then, by substitution

therefore the complex transfer function is

.

This transfer function corresponds(up to normalization) to a first order low-pass filter with a cutoff frequency [2] For frequencies significantly exceeding cutoff frequency the frequency response of an leaky integrator becomes close the frequency response of an ideal integrator

For frequencies significantly lower than the cutoff frequency the transfer function becomes independent of frequency and the signal is transmitted through the integrator scaled by and with its spectrum unchanged.

Discrete-time realization

[edit]

Replacing the derivative with a finite difference and solving for gives recursive formula

Defining the recursion becomes which is the standard recursive form of an exponential moving average.

Examples

[edit]

Many physical, biological [3] , and technical systems are described by a model in which the accumulation of a certain quantity is counteracted by losses that depend on the system's current state.

Integrating RC circuit

An integrating RC circuit is a good example of a leaky integrator. [4] Assume the voltage across the capacitor at the initial time moment is zero. Until the voltage on the capacitor has time to change significantly, the current through the resistor is so

,

the voltage across the capacitor acts approximately like an integrator of the input voltage. But for a slowly changing input voltage (relative to the RC time constant) the output voltage has time to change - the difference between the input and output voltages decreases which reduces the current , where term can be formally considered as a leakage current (the capacitor self-discharg through a resistor R and the input circuit).

See also

[edit]

References

[edit]
  1. ↑ Eliasmith, Anderson, Chris, Charles (2003). Neural Engineering. Cambridge, Massachusetts: MIT Press. pp. 81. ISBN 9780262050715.{{cite book}}: CS1 maint: multiple names: authors list (link)
  2. ↑ "Introduction to Electronics" (PDF). Massachusetts Institute of Technology OpenCourseWare. The Leaky Integrator → Low Pass Filter.
  3. ↑ Gerstner, Wulfram; Kistler, Werner M.; Naud, Richard; Paninski, Liam (2014). "1.3 Integrate-And-Fire Models". Neuronal Dynamics: From Single Neurons to Networks and Models of Cognition. Cambridge University Press. doi:10.1017/CBO9781107447615. ISBN 978-1-107-06083-8.
  4. ↑ Candan, Çağatay (2011). Steady-State Response of RC Circuit to Periodic Square Wave Input (PDF). Department of Electrical and Electronics Engineering (Report). Middle East Technical University. RC Circuit: A Leaky Integrator.