Hello,
While iterating through images, I would like to repeat certain iteration randomly such as 1, 2, 3, 3, 3, 4, 5, 6, 6 …
How would I do that through a coding component?
Thank you!
Hello,
While iterating through images, I would like to repeat certain iteration randomly such as 1, 2, 3, 3, 3, 4, 5, 6, 6 …
How would I do that through a coding component?
Thank you!
You would insert a second loop around the routine in question, nested within the current loop, not connected to a conditions file. You would then control the nReps
value of that inner loop in order to repeat the routine as many times as required.
To give more detailed suggestions as to how to implement that, you would need to define your design more clearly, in particular by describing exactly what you mean by “randomly”. To have enough info to implement this in code, think the level of detail needed for a Methods section in a paper.
Hi Michael,
Thank you for your reply, I’ve attached the structure of my experiment. I have the image component inside practice_trial routine right now. There is an inner loop that sequentially loops through a csv file to display the different images. The outer loop randomly selects the csv to loop through for the inner loop.
Yes, so you would insert another loop inside practice_trials
, as described above.
We still need to know your randomisation scheme.