bionet.ted.rt.IAFRealTimeEncoder¶
- class bionet.ted.rt.IAFRealTimeEncoder(dt, b, d, R=inf, C=1.0, dte=0.0, quad_method='trapz')¶
Real-time IAF neuron time encoding machine.
This class implements a real-time time encoding machine that uses an Integrate-and-Fire neuron 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.
R : float
Neuron resistance.
C : float
Neuron capacitance.
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, R=inf, C=1.0, dte=0.0, quad_method='trapz')¶
Methods
__init__(dt, b, d[, R, C, dte, quad_method]) encode(data) Encode a block of data with an IAF neuron. process(get, put) Encode data returned in blocks by function get() and write it to some destination using the function put().