Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.


BayesMallows

Bayesian Preference Learning with the Mallows Rank Model

v1.0.1
GPL-3
Authors
Oystein Sorensen [aut, cre] (<https://orcid.org/0000-0003-0724-3542>), Valeria Vitelli [aut] (<https://orcid.org/0000-0002-6746-0453>), Marta Crispino [aut], Qinghua Liu [aut], Cristina Mollica [aut], Luca Tardella [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.