decomp2perm | R Documentation |
Given a distance decomposition vector and a distance name, generate uniformly at random a permutation consistent with the decomposition vector.
decomp2perm(vec, dist.name = "kendall")
vec |
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
decomp2perm(c(1,0,1,0,0), "kendall")
decomp2perm(c(1,0,1,0,0), "cayley")
decomp2perm(c(1,0,1,0,0), "hamming")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.