Learn R Programming

BayesMallows (version 0.3.0)

asymptotic_partition_function: Asymptotic Approximation of Partition Function

Description

Compute the asymptotic approximation of the logarithm of the partition function, using the iteration algorithm of mukherjee2016;textualBayesMallows.

Usage

asymptotic_partition_function(alpha_vector, n_items, metric, K,
  n_iterations)

Arguments

alpha_vector

A numeric vector of alpha values.

n_items

Integer specifying the number of items.

metric

One of "footrule" and "spearman".

K

Integer.

n_iterations

Integer specifying the number of iterations.

Value

A vector, containing the partition function at each value of alpha.

References