expyriment.design.permute
The permute module.
This module implements permutation of blocks, trials and conditions.
Attributes
- expyriment.design.permute.P_BALANCED_LATIN_SQUARE
 default value: ‘balanced’
- expyriment.design.permute.P_CYCLED_LATIN_SQUARE
 default value: ‘cycled’
- expyriment.design.permute.P_RANDOM
 default value: ‘random’
Functions
- expyriment.design.permute.is_permutation_type(type_str)
 Return true if the string or value is a know permutation type.
- Parameters:
 - type_strstring
 permutation type string
- expyriment.design.permute.latin_square(elements, permutation_type='random')
 A latin square permutation of elements.
If elements is an integer the elements=[0,…, elements] is used.
- Parameters:
 - elementsint or list
 list of elements or a number
- permutation_typestr (default=’random’)
 type of permutation (permutation type); ‘random’, ‘cycled’ or ‘balanced’ permutation types defined in misc.constants and design.permute: P_BALANCED_LATIN_SQUARE, P_CYCLED_LATIN_SQUARE and P_RANDOM
- Returns:
 - permutationslist of list
 
Notes
see “Bradley, J. V. Complete counterbalancing of immediate sequential effects in a Latin square design. J. Amer. Statist. Ass.,.1958, 53, 525-528. “