neuroaikit.common.utils.transform_rate

neuroaikit.common.utils.transform_rate(data2D, N_ts, max_is_present_for, seed=0)[source]

Transforms input data into spike trains encoding values using rate-coding. N_ts - number of timesteps to generate (length of the spike trains) max_is_present_for - expected number of spikes for the maximum value of 1.0 seed - for reproducibility