Numba JIT implementation of Bayesian Binning.
A little slow compared to C++ implementation, but not unreasonable.
Used for latency and firing rate estimations in neural spike trains.
Endres, D., Oram, M. Feature extraction from spike trains with Bayesian binning: ‘Latency is where the signal starts’. J Comput Neurosci 29, 149–169 (2010).