inversionv | R Documentation |
inversionv() returns the vector of inversions for each entry in the permutation. For example, inversionv(1,2,0) = (1,1,0), inversionv(0,1,2) = (0,0,0).
inversionv(x)
x |
a list of numbers, or a permutation. |
inversionv returns a vector of inversions for each member of the permutation.
inversions
inversionv(c(3,1,2,4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.