Compute the logarithm of the expected distance of metrics for a Mallows rank model
Compute the logarithm of the expected distance of metrics for a Mallows rank model
log_expected_dist(alpha, n_items, cardinalities, metric)
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 |
A scalar, the logarithm of the partition function.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.