Description Usage Arguments Details Value References Examples
A ranking is compatible with a set of intervals if we can pick a point from each interval such that the ranking of those points is the ranking in question.
1 | isCompatible(intervals, ranking)
|
intervals |
data frame (see generateIntervals for the required format) |
ranking |
permutation of |
See section 4.1 of Rising (2021).
TRUE if the ranking is compatible and FALSE otherwise
Rising, Justin (2021). Uncertainty in Ranking. arXiv:2107.03459.
1 2 3 4 5 | left <- 0:2 * 0.5 + 1
right <- left + 0.75
intervals <- data.frame(left = left, right = right)
isCompatible(intervals, 1:3)
isCompatible(intervals, c(3, 2, 1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.