brainpy.encoding module

brainpy.encoding module#

Encoder

Base class for encoding rate values as spike trains.

LatencyEncoder

Encode the rate input as the spike train using the latency encoding.

WeightedPhaseEncoder

Encode the rate input into the spike train according to [1]_.

PoissonEncoder

Encode the rate input as the Poisson spike train.

DiffEncoder

Generate spike only when the difference between two subsequent time steps meets a threshold.