View source: R/which_antichain.R
which_antichain | R Documentation |
The function returns indices of elements from the given list x
, which are incomparable
(i.e., it is neither subset nor superset) with any preceding element. The first element
is always selected. The next element is selected only if it is incomparable with all
previously selected elements.
which_antichain(x, distance = 0)
x |
a list of integerish vectors |
distance |
a non-negative integer, which specifies the allowed discrepancy between compared sets |
an integer vector of indices of selected (incomparable) elements.
Michal Burda
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.