Learn R Programming

BayesMallows (version 1.1.0)

log_expected_dist: Compute the logarithm of the expected distance of metrics for a Mallows rank model

Description

Compute the logarithm of the expected distance of metrics for a Mallows rank model

Usage

log_expected_dist(alpha, n_items, cardinalities, metric)

Arguments

alpha

The value of the alpha parameter.

n_items

Number of items.

cardinalities

Number of occurrences for each unique distance. Applicable for Footrule and Spearman distance.

metric

A string. Available options are "ulam", "footrule" and "spearman".

Value

A scalar, the logarithm of the partition function.