helpers.alpha_allowable_perms

helpers.alpha_allowable_perms(alpha, s)

Generate alpha-allowable permutations

Parameters

Name Type Description Default
alpha int A positive integer required
s int A positive integer specifying the number of levels from (0, 1,…,s-1) required

Returns

Type Description
typing.List[int] List[int]: Alpha allowable permutations

Examples:

import pyLHD
pyLHD.alpha_allowable_perms(alpha = 2, s = 4)
[(0, 1, 2, 3),
 (0, 1, 3, 2),
 (1, 0, 2, 3),
 (1, 0, 3, 2),
 (2, 3, 0, 1),
 (2, 3, 1, 0),
 (3, 2, 0, 1),
 (3, 2, 1, 0)]