ocbe-uio / BayesMallows

R-package for Bayesian preference learning with the Mallows rank model.
https://ocbe-uio.github.io/BayesMallows/
GNU General Public License v3.0
21 stars 9 forks source link

Export exact partition functions #409

Closed osorensen closed 4 months ago

osorensen commented 5 months ago

For Cayley, Kendall, and Hamming, functions for computing the exact partition function should be exported. Currently this is the way to get them:

library(BayesMallows)
BayesMallows:::get_partition_function(
  alpha = 3, n_items = 10, metric = "cayley", pfun_values = NULL)