Description Usage Arguments Examples
These functions biject among partitions of at most 3 parts, 3-subsets of natural numbers, and indices for the lexicographic total orders on them.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | index_subset(i)
subset_index(vec)
subset_partition(vec)
partition_subset(lambda)
index_partition(i)
partition_index(lambda)
indexSubset(i)
indexPartition(i)
subsetIndex(vec)
subsetPartition(vec)
partitionIndex(lambda)
partitionSubset(lambda)
|
i |
Integer; an index in the total order, starting at 0. |
vec |
Integer vector; a set of 3 distinct non-negative integers, in decreasing order. |
lambda |
Integer vector; a partition of at most 3 parts, with parts in non-increasing order. |
1 2 3 4 5 6 | index_subset(2)
index_partition(2)
subset_index(c(3, 2, 0))
subset_partition(c(3, 2, 0))
partition_index(c(1, 1, 0))
partition_subset(c(1, 1, 0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.