Generate correlated spike trains in brian2

Description of problem

In Brian 1.4, there was a function ‘correlatedspikes’ to generate spike trains with given correlations, which was based on
Generation of correlated spike trains.
Based on the article: Brette, R. (2009). Generation of correlated spike trains.

But I didn’t find one in latest Brian2.

May I know if you can add this function to Brian2?
Minimal code to reproduce

What you have aready tried

Expected output (if relevant)

Actual output (if relevant)

Full traceback of error (if relevant)

Hello,
there seems to have been some discussion on GitHub resulting in a snippet of code which should accomplish the same effect (but not a built-in Brian2 function yet).

-Adam

1 Like

Thanks a lot. It really helps!

1 Like

Hi!

You may want to have a look at a little tool I’ve put together (feedback very welcome!): GitHub - tetzlab/cospit: Generate correlated spike trains

Cheers,

Sebastian

1 Like

Hi!

Thanks a lot. That’s what I want, appreciate it!