Compute the logarithm of the partition function for a Mallows rank model.
get_partition_function(n_items, alpha, cardinalities = NULL,
logz_estimate = NULL, metric = "footrule")Number of items.
The value of the alpha parameter.
Number of occurrences for each unique distance.
Applicable for footrule and Spearman distance. Defaults to R_NilValue.
Precomputed importance sampling fit.
A string. Available options are "footrule",
"kendall", "spearman", "cayley", and "hamming".
Defaults to "footrule".
A scalar, the logarithm of the partition function.