WBS.intervals {changepoints}R Documentation

Generate random intervals for WBS.

Description

Generate random intervals for WBS.

Usage

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

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.

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

Author(s)

Oscar Hernan Madrid Padilla

Examples

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

[Package changepoints version 1.1.0 Index]