Compute the asymptotic approximation of the logarithm of the partition function, using the iteration algorithm of mukherjee2016;textualBayesMallows.
asymptotic_partition_function(
alpha_vector,
n_items,
metric,
K,
n_iterations = 1000L,
tol = 1e-09
)A vector, containing the partition function at each value of alpha.
A numeric vector of alpha values.
Integer specifying the number of items.
One of "footrule" and "spearman".
Integer.
Integer specifying the number of iterations.
Stopping criterion for algorithm. The previous matrix is subtracted
from the updated, and if the maximum absolute relative difference is below tol,
the iteration stops.