canonicalize: Compute a canonical representation of an interval order

Description Usage Arguments Details Value References Examples

View source: R/canonicalize.R

Description

This functions generates a set of intervals with distinct endpoints such that running any of the functions in this package on the return value gives the same answer as running those functions on the input.

Usage

1
canonicalize(intervals)

Arguments

intervals

data frame (see generateIntervals for the required format)

Details

See section 3.1 of Rising (2021).

Value

a data frame in the same format as the input

References

Rising, Justin (2021). Uncertainty in Ranking. arXiv:2107.03459.

Examples

1
2
3
4
5
left <- c(0, 0, 0, 1, 2)
right <- c(0, 1, 2, 2, 2)
intervals <- data.frame(left = left, right = right)
toMatrix(intervals)
toMatrix(canonicalize(intervals))

rankUncertainty documentation built on Nov. 16, 2021, 1:07 a.m.