50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

PerMallows (version 1.8)

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")

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

Value

  • The expected distance decomposition vector under the GMM

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