bionet.ted.asdm.asdm_decode_fast

bionet.ted.asdm.asdm_decode_fast(s, dur, dt, bw, M, b, d, k=1.0, sgn=-1)

Fast ASDM time decoding machine.

Decode a signal encoded by an Asynchronous Sigma-Delta Modulator using a fast recovery algorithm.

Parameters:

s : numpy array 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).

M : int

Number of bins used by the fast algorithm.

b : float

Encoder bias.

d : float

Encoder threshold.

k : float

Encoder integrator constant.

sgn : {-1, 1}

Sign of first spike.

Returns:

u_rec : ndarray of floats

Recovered signal.