Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

PerMallows (version 1.14)

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

Description

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

Usage

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

Value

The maximum value for the distance between the permutations

Arguments

perm.length

number of items in the permutations

dist.name

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

Examples

Run this code
maxi.dist(4,"cayley")
maxi.dist(10,"ulam")
maxi.dist(4)

Run the code above in your browser using DataLab