I have a specific problem I hope you will help me with. I am running an experiment using eyetracking. In each trial (84 trials in total) I have to present 50 images, 100x100 pixels each, 50 on the right side of the screen, 50 on the left, simultaneously.
I am trying to generate a random vector of coordinates of X and Y which adheres the following conditions:
Each randomly generated X and Y location coordinate pair must be equidistant by 50 pixels from the next. This means that all the images displayed on screen, all 50 of them, must have at least 50 pixels distance from each other. So if on of the image location pairs is x = 1 and y = 1, the other x and y pairs must not have a value within x + 100(image pixel number) + 50 (distance between images) = 151, and y + 100(image pixel number) + 50 (distance between images) = 151. Each trial must have coordinate/location x and y numbers for 50 images that adhere to these rules.
I am sorry this is so wordy. Can anyone please help?
All the best and thanks, Dritan
Aucun commentaire:
Enregistrer un commentaire