psychopy_ext.exp.latin_square

psychopy_ext.exp.latin_square(n=6)[source]

Generates a Latin square of size n. n must be even.

Based on Chris Chatham’s suggestion

Kwargs:
n (int, default: 6)

Size of Latin square. Should be equal to the number of conditions you have.

Returns:A numpy.array with each row representing one possible ordering of stimuli.