Skip to contents

Wraps the breakfast package for Tail-Greedy Unbalanced-Haar detection, with information-criterion model selection.

Usage

tguh_wrapper(x, ...)

Arguments

x

A numeric vector.

...

Additional arguments passed to breakfast::breakfast().

Value

A ggcpt object.

References

Fryzlewicz P (2018). “Tail-Greedy Bottom-Up Data Decompositions and Fast Multiple Change-Point Detection.” The Annals of Statistics, 46(6B), 3390–3421.

Examples

set.seed(2026)
res <- tguh_wrapper(c(rnorm(60), rnorm(60, 4)))
res$changepoints
#> # A tibble: 1 × 2
#>      cp cp_value
#>   <int>    <dbl>
#> 1    60   -0.999
res$penalty$type
#> [1] "sSIC"