Learn R Programming

PerMallows (version 1.14)

expectation.gmm: Compute the expected distance, GMM under the Hamming distance

Description

Compute the expected distance in the GMM under the Hamming distance

Usage

expectation.gmm(theta, dist.name = "kendall")

Value

The expected distance decomposition vector under the GMM

Arguments

theta

n dimensional real vector with the dispersion parameters

dist.name

optional name of the distance used in the GMM. One of: kendall (default), cayley, hamming

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

Run this code
expectation.gmm(c(0.38, 0.44, 0.1, 0.2, 1, 0.1))
expectation.gmm(c(2, 2, 2, 2),"cayley")
expectation.gmm(c(0.3, 0.1, 0.5, 0.1),"hamming")

Run the code above in your browser using DataLab