generateIntervals: Generate random intervals

Description Usage Arguments Value Examples

View source: R/generateIntervals.R

Description

Generate a set of intervals with endpoints uniformly distributed between 0 and 1.

Usage

1

Arguments

n

number of intervals to generate

sort

if TRUE, sort the output intervals by their left endpoints

f

transformation to apply to each endpoint

Value

Data frame with columns 'left' and 'right'. It is guaranteed that every value in 'left' is no greater than the corresponding value in 'right'.

Examples

1
2
3

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