factoradic: Factoradic numbers

Description Usage Arguments Details Value References See Also Examples

Description

Utility functions for factoradic numbers

Usage

1
2
3
4
5
6
FR2dec(FR)
dec2FR(dec,N)
FR2permvec(FR,base=1L)
permvec2FR(permvec)
dec2permvec(dec,N,base=1L)
permvec2dec(permvec)

Arguments

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.

Details

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.

Value

For FR2dec and permvec2dec, an integer; for dec2FR and permvec2FR, a numeric vector; for FR2permvec and dec2permvec, an integer vector.

References

Chapter 10 of .NET Test Automation Recipes

http://en.wikipedia.org/wiki/Factoradic

http://www.mathe2.uni-bayreuth.de/frib/KERBER/h00/node30.html

See Also

permuteTrt

Examples

1
2
3
4

MRPP documentation built on May 2, 2019, 4:46 p.m.