API Reference

Mallows.sample_mallowsMethod
sample_mallows(sigma0::Vector{Int}, phi::Float64)

Samples a permutation from the Mallows model with Kendall's tau distance, and also returns the Kendall's tau distance between the sampled permutation and sigma0. Parameters:

  • sigma0: The central permutation.
  • phi: The dispersion parameter (0.0 < phi <= 1.0).

Returns:

  • Tuple{Vector{Int}, Int}:
    • The sampled permutation sigma.
    • The Kendall's tau distance d(sigma, sigma0).
source