runif.permutation: Random permutation

Description Usage Arguments Value Examples

View source: R/PerMallows.R

Description

Generate a collection of n permutations uniformly at random

Usage

1
runif.permutation(n = 1, perm.length)

Arguments

n

optional number of permutations to generate

perm.length

length of the permutations generated

Value

A single permutation or a matrix with n rows, each being a permutation. Every permutation is drawn uniformly at random and has length perm.length

Examples

1

Example output

Loading required package: Rcpp
[1] 5 4 3 2 1

PerMallows documentation built on May 2, 2019, 6:14 a.m.