Learn R Programming

changepoints (version 1.1.0)

WBS.intervals: Generate random intervals for WBS.

Description

Generate random intervals for WBS.

Usage

WBS.intervals(M, lower = 1, upper)

Value

A list with the following structure:

Alpha

A M-dim vector representing the starting indices of random intervals

Beta

A M-dim vector representing the ending indices of random intervals

Arguments

M

A positive integer scalar of number of random intervals.

lower

A positive integer scalar of lower bound of random intervals.

upper

A positive integer scalar of upper bound of random intervals.

Author

Oscar Hernan Madrid Padilla

Examples

Run this code
WBS.intervals(120, lower = 1, upper = 300)

Run the code above in your browser using DataLab