Description Usage Arguments Details Value References See Also Examples
Utility functions for factoradic numbers
| 1 2 3 4 5 6 | FR2dec(FR)
dec2FR(dec,N)
FR2permvec(FR,base=1L)
permvec2FR(permvec)
dec2permvec(dec,N,base=1L)
permvec2dec(permvec)
 | 
| FR | Vector representation of factoradic number. | 
| dec | Decimal representation of factoradic number. | 
| N | An integer | 
| base | 0 or 1, indicating the start index for a vector. | 
| permvec | An integer vector of permutations of integers of size N. | 
FR2dec and dec2FR convert factoradic numbers from/to decimal to/from vector representations. 
FR2permvec and permvec2FR converst factoradic numbers in vector representations from/to permutatin indices. 
dec2permvec and permvec2dec are convenient wrappers that converst factoradic numbers in vector representations from/to permutatin indices. 
For FR2dec and permvec2dec, an integer; 
for dec2FR and permvec2FR, a numeric vector;
for FR2permvec and dec2permvec, an integer vector.
Chapter 10 of .NET Test Automation Recipes
http://en.wikipedia.org/wiki/Factoradic
http://www.mathe2.uni-bayreuth.de/frib/KERBER/h00/node30.html
| 1 2 3 4 | FR2dec(dec2FR(10,10))
set.seed(2340)
FR2permvec(permvec2FR(sample(10)))
permvec2dec(dec2permvec(100,10))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.