R/crit_val.R
all_permutations.Rd
All permutations used to compute the exact distributions of circular tests
all_permutations(n = 2, m = 2)
n |
total of frequencies |
---|---|
m |
number of spacings |
A matrix
with all possible permutations
all_permutations(2,2)#> [,1] [,2] #> [1,] 0 2 #> [2,] 1 1 #> [3,] 2 0all_permutations(4,3)#> [,1] [,2] [,3] #> [1,] 0 0 4 #> [2,] 0 1 3 #> [3,] 1 0 3 #> [4,] 0 2 2 #> [5,] 1 1 2 #> [6,] 2 0 2 #> [7,] 0 3 1 #> [8,] 1 2 1 #> [9,] 2 1 1 #> [10,] 3 0 1 #> [11,] 0 4 0 #> [12,] 1 3 0 #> [13,] 2 2 0 #> [14,] 3 1 0 #> [15,] 4 0 0