https://github.com/cran/statcomp
Raw File
Tip revision: 6d34a467d90f37b6acd84996d35058b83f737a8f authored by Sebastian Sippel on 28 October 2019, 22:40:02 UTC
version 0.1.0
Tip revision: 6d34a46
generate_lehmerperm_matrix.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/transformPermCoding.R
\name{generate_lehmerperm_matrix}
\alias{generate_lehmerperm_matrix}
\title{A function to generate the Lehmer permutation ordering.}
\usage{
generate_lehmerperm_matrix(ndemb)
}
\arguments{
\item{ndemb}{The embedding dimension.}
}
\value{
A numeric matrix that contains the Lehmer permutation pattern.
}
\description{
Generates all permutations of a given embedding dimension, ordered according to the Lehmer coding scheme.
}
\details{
This function converts ranks to indices and back.
}
\references{
http://www.keithschwarz.com/interesting/code/?dir=factoradic-permutation
}
\author{
Sebastian Sippel
}
back to top