December 2019
Intermediate to advanced
368 pages
11h 10m
English
We store the configuration of the visual field for each of the 75 trials discussed previously in the VisualField Python class. It has the following constructor:
def __init__(self, big_pos, small_pos, field_size): self.big_pos = big_pos self.small_pos = small_pos self.field_size = field_size self.data = np.zeros((field_size, field_size)) # store small object position self._set_point(small_pos[0], small_pos[1]) # store big object points offsets = [-1, 0, 1] for xo in offsets: for yo in offsets: self._set_point(big_pos[0] + xo, big_pos[1] + yo)
The constructor of VisualField accepts as parameters the tuple with coordinates (x, y) of the large and small object, as well as the size of the visual field. We consider the ...
Read now
Unlock full access