maxi.dist: Get the maximum value of the distance ebtween permutations

Description Usage Arguments Value Examples

View source: R/PerMallows.R

Description

Compute the maximum posible value for the distance between two given permutations. The distance can be kendall, cayley, hamming and ulam

Usage

1
maxi.dist(perm.length, dist.name = "kendall")

Arguments

perm.length

number of items in the permutations

dist.name

optional. One of: kendall (default), cayley, hamming, ulam

Value

The maximum value for the distance between the permutations

Examples

1
2
3
maxi.dist(4,"cayley")
maxi.dist(10,"ulam")
maxi.dist(4)

Example output

Loading required package: Rcpp
[1] 3
[1] 9
[1] 6

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