Description Usage Arguments Value Examples
Given a number of permutations, the number of items in the permutations, a distance value and a distance name, generate a sample of permutations with the specified length at the given distance. Can be used to generate derangements and permutations of a given number of cycles
1 | rdist(n, perm.length, dist.value, dist.name = "kendall")
|
n |
number of permutations in the sample |
perm.length |
number of items in the permutations |
dist.value |
distance value |
dist.name |
distance name. One of: kendall (default), cayley, hamming, ulam |
A sample of permutations at the given distance
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.