bionet.ted.rt.ASDMRealTimeEncoder

class bionet.ted.rt.ASDMRealTimeEncoder(dt, b, d, k=1.0, dte=0.0, quad_method='trapz')

Real-time ASDM time encoding machine.

This class implements a real-time time encoding machine that uses an Asynchronous Sigma-Delta Modulator to encode data.

Parameters:

dt : float

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

b : float

Encoder bias.

d : float

Encoder threshold.

k : float

Encoder integration constant.

dte : float

Sampling resolution assumed by the encoder. This may not exceed dt.

quad_method : {‘rect’, ‘trapz’}

Quadrature method to use (rectangular or trapezoidal).

Methods

encode(data, ...) Encode a block of data using the additional parameters.
process(get, put) Process data obtained from get() and write it using put().
__init__(dt, b, d, k=1.0, dte=0.0, quad_method='trapz')

Methods

__init__(dt, b, d[, k, dte, quad_method])
encode(data) Encode a block of data with an ASDM encoder.
process(get, put) Encode data returned in blocks by function get() and write it to some destination using the function put().