
Last chance! 50% off unlimited learning
Sale ends in
For Cayley, Hamming, and Kendall distances, computationally tractable functions are available for the exact partition function.
compute_exact_partition_function(
alpha,
n_items,
metric = c("cayley", "hamming", "kendall")
)
The logarithm of the partition function.
Dispersion parameter.
Number of items.
Distance function, one of "cayley", "hamming", or "kendall".
Other partition function:
estimate_partition_function()
,
get_cardinalities()
compute_exact_partition_function(
alpha = 3.4, n_items = 34, metric = "cayley"
)
compute_exact_partition_function(
alpha = 3.4, n_items = 34, metric = "hamming"
)
compute_exact_partition_function(
alpha = 3.4, n_items = 34, metric = "kendall"
)
Run the code above in your browser using DataLab