Jittering in Javascript
in OpenSesame
Hello, I must present my stimuli for different durations according to an exponential distribution.
I think changing this python script (except the plotting part) would help me so much. Could you please help me? Thank you so much in advance!
https://forum.cogsci.nl/discussion/3984/jitter-from-exponential-distribution
Comments
Hi Soan,
I think you can rebuild the logic of the code snippet pretty much the same way in Javascript. Only you can't use numpy as math library but have to look into Javascript equivalents (e.g. Math).
This looks like a legit implementation of the exponential distribution. I think if you play around a bit with the code, you will manage to find out how exactly to reproduce the distribution. Let us know if you need more help.
Good luck
Eduard
Thank you so much!!