Learn R Programming

PerMallows (version 1.1)

expectation.mm: Compute the expected distance, MM under the Hamming distance

Description

Compute the expected distance in the MM under the Hamming distance

Usage

expectation.mm(theta, perm.length, dist.name = "kendall")

Arguments

theta
real dispersion parameter
perm.length
length of the permutation in the considered model
dist.name
optional name of the distance used in the MM. One of: kendall (default), cayley, hamming, ulam

Value

  • expected distance

Examples

Run this code
expectation.mm(2,4,'hamming')
expectation.mm(1, 6,'ulam')

Run the code above in your browser using DataLab