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

Description Usage Arguments Value References Examples

View source: R/PerMallows.R

Description

Compute the expected distance in the MM under the Hamming distance

Usage

1
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

The expected distance under the MM

References

"Ekhine Irurozki, Borja Calvo, Jose A. Lozano (2016). PerMallows: An R Package for Mallows and Generalized Mallows Models. Journal of Statistical Software, 71(12), 1-30. doi:10.18637/jss.v071.i12"

Examples

1
2
3
4
expectation.mm( 1, 7, "kendall" )
expectation.mm( 2, 5, "cayley" )
expectation.mm( 2, 4, "hamming" )
expectation.mm( 1, 6, "ulam" )

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