bionet.ted.iaf_trig.iaf_decode

bionet.ted.iaf_trig.iaf_decode(s, dur, dt, bw, b, d, R=inf, C=1.0, M=5, smoothing=0.0)

IAF time decoding machine using trigonometric polynomials.

Decode a finite length signal encoded with an Integrate-and-Fire neuron assuming that the encoded signal is representable in terms of trigonometric polynomials.

Parameters:

s : ndarray of floats

Encoded signal. The values represent the time between spikes (in s).

dur : float

Duration of signal (in s).

dt : float

Sampling resolution of original signal; the sampling frequency is 1/dt Hz.

bw : float

Signal bandwidth (in rad/s).

b : float

Encoder bias.

d : float

Encoder threshold.

R : float

Neuron resistance.

C : float

Neuron capacitance.

M : int

2*M+1 coefficients are used for reconstructing the signal.

smoothing : float

Smoothing parameter.

Returns:

u_rec : ndarray of floats

Recovered signal.