generate_lehmerperm_matrix {statcomp} | R Documentation |
Generates all permutations of a given embedding dimension, ordered according to the Lehmer coding scheme.
generate_lehmerperm_matrix(ndemb)
ndemb |
The embedding dimension. |
This function converts ranks to indices and back.
A numeric matrix that contains the Lehmer permutation pattern.
Sebastian Sippel
http://www.keithschwarz.com/interesting/code/?dir=factoradic-permutation