perm2decomp | R Documentation |
Given a permutation and a distance name generate the decomposition vector
perm2decomp(perm, dist.name = "kendall")
perm |
the permutation |
dist.name |
optional the name of the distance. One of: kendall (default), cayley, hamming |
The distance decomposition vector of the given permutation and distance. For the Kendall distance is the inversion vector
perm2decomp(c(1,2,4,3,5), "kendall")
perm2decomp(c(1,2,4,3,5), "cayley")
perm2decomp(c(1,2,4,3,5), "hamming")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.